{"type": "func", "start": 6442941472, "end": 6442941624, "name": "cocos2d::CCDevice::getDPI", "pseudocode": "// \n// cocos2d::CCDevice::getDPI from 0x180077c20 to 0x180077cb8 (152 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180144700\n// > <???> @ 0x180144710\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be98c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:59 +0000\n// \n\n__int64 __fastcall cocos2d::CCDevice::getDPI()\n{\n  __int64 result; // rax\n  HDC DC; // rsi\n  int DeviceCaps; // edi\n  int v3; // ebx\n\n  result = (unsigned int)dword_1801ACB88;\n  if ( dword_1801ACB88 == -1 )\n  {\n    DC = GetDC(nullptr);\n    DeviceCaps = GetDeviceCaps(DC, 8);\n    v3 = GetDeviceCaps(DC, 4);\n    ReleaseDC(nullptr, DC);\n    dword_1801ACB88 = (int)(float)((float)((float)((float)DeviceCaps * 254.0) / (float)v3) / 10.0);\n    return (unsigned int)dword_1801ACB88;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCDevice::getDPI from 0x180077c20 to 0x180077cb8 (152 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180144700\n; > <???> @ 0x180144710\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be98c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:59 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x180077c20\nmov     eax, cs:dword_1801ACB88                                        ; +0x4, 0x180077c24\ncmp     eax, 0FFFFFFFFh                                                ; +0xa, 0x180077c2a\njnz     loc_180077CB3                                                  ; +0xd, 0x180077c2d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x13, 0x180077c33\nxor     ecx, ecx; hWnd                                                 ; +0x18, 0x180077c38\nmov     [rsp+28h+arg_8], rsi                                           ; +0x1a, 0x180077c3a\nmov     [rsp+28h+var_8], rdi                                           ; +0x1f, 0x180077c3f\ncall    cs:GetDC                                                       ; +0x24, 0x180077c44\nmov     rcx, rax; hdc                                                  ; +0x2a, 0x180077c4a\nmov     edx, 8; index                                                  ; +0x2d, 0x180077c4d\nmov     rsi, rax                                                       ; +0x32, 0x180077c52\ncall    cs:GetDeviceCaps                                               ; +0x35, 0x180077c55\nmov     edx, 4; index                                                  ; +0x3b, 0x180077c5b\nmov     rcx, rsi; hdc                                                  ; +0x40, 0x180077c60\nmov     edi, eax                                                       ; +0x43, 0x180077c63\ncall    cs:GetDeviceCaps                                               ; +0x45, 0x180077c65\nmov     rdx, rsi; hDC                                                  ; +0x4b, 0x180077c6b\nxor     ecx, ecx; hWnd                                                 ; +0x4e, 0x180077c6e\nmov     ebx, eax                                                       ; +0x50, 0x180077c70\ncall    cs:ReleaseDC                                                   ; +0x52, 0x180077c72\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x58, 0x180077c78\nmovd    xmm1, edi                                                      ; +0x5d, 0x180077c7d\nmov     rdi, [rsp+28h+var_8]                                           ; +0x61, 0x180077c81\ncvtdq2ps xmm1, xmm1                                                    ; +0x66, 0x180077c86\nmovd    xmm0, ebx                                                      ; +0x69, 0x180077c89\nmulss   xmm1, cs:dword_180106EF0                                       ; +0x6d, 0x180077c8d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x75, 0x180077c95\ncvtdq2ps xmm0, xmm0                                                    ; +0x7a, 0x180077c9a\ndivss   xmm1, xmm0                                                     ; +0x7d, 0x180077c9d\ndivss   xmm1, cs:dword_1800EE4B0                                       ; +0x81, 0x180077ca1\ncvttss2si eax, xmm1                                                    ; +0x89, 0x180077ca9\nmov     cs:dword_1801ACB88, eax                                        ; +0x8d, 0x180077cad\nadd     rsp, 28h                                                       ; +0x93, 0x180077cb3\nretn                                                                   ; +0x97, 0x180077cb7", "xrefs": ["<???> @ 0x180144700", "<???> @ 0x180144710", "<???> @ 0x18014cf68", "<???> @ 0x1801be98c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}