; ; cocos2d::CCDevice::getDPI from 0x180074d10 to 0x180074da8 (152 bytes) ; ; 4 xrefs: ; > @ 0x18013b290 ; > @ 0x18013b2a0 ; > @ 0x1801438a8 ; > @ 0x1801b45cc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; sub rsp, 28h ; +0x0, 0x180074d10 mov eax, cs:dword_1801A2BB0 ; +0x4, 0x180074d14 cmp eax, 0FFFFFFFFh ; +0xa, 0x180074d1a jnz loc_180074DA3 ; +0xd, 0x180074d1d mov [rsp+28h+arg_0], rbx ; +0x13, 0x180074d23 xor ecx, ecx; hWnd ; +0x18, 0x180074d28 mov [rsp+28h+arg_8], rsi ; +0x1a, 0x180074d2a mov [rsp+28h+var_8], rdi ; +0x1f, 0x180074d2f call cs:GetDC ; +0x24, 0x180074d34 mov rcx, rax; hdc ; +0x2a, 0x180074d3a mov edx, 8; index ; +0x2d, 0x180074d3d mov rsi, rax ; +0x32, 0x180074d42 call cs:GetDeviceCaps ; +0x35, 0x180074d45 mov edx, 4; index ; +0x3b, 0x180074d4b mov rcx, rsi; hdc ; +0x40, 0x180074d50 mov edi, eax ; +0x43, 0x180074d53 call cs:GetDeviceCaps ; +0x45, 0x180074d55 mov rdx, rsi; hDC ; +0x4b, 0x180074d5b xor ecx, ecx; hWnd ; +0x4e, 0x180074d5e mov ebx, eax ; +0x50, 0x180074d60 call cs:ReleaseDC ; +0x52, 0x180074d62 mov rsi, [rsp+28h+arg_8] ; +0x58, 0x180074d68 movd xmm1, edi ; +0x5d, 0x180074d6d mov rdi, [rsp+28h+var_8] ; +0x61, 0x180074d71 cvtdq2ps xmm1, xmm1 ; +0x66, 0x180074d76 movd xmm0, ebx ; +0x69, 0x180074d79 mulss xmm1, cs:dword_18010087C ; +0x6d, 0x180074d7d mov rbx, [rsp+28h+arg_0] ; +0x75, 0x180074d85 cvtdq2ps xmm0, xmm0 ; +0x7a, 0x180074d8a divss xmm1, xmm0 ; +0x7d, 0x180074d8d divss xmm1, cs:dword_1800E8440 ; +0x81, 0x180074d91 cvttss2si eax, xmm1 ; +0x89, 0x180074d99 mov cs:dword_1801A2BB0, eax ; +0x8d, 0x180074d9d add rsp, 28h ; +0x93, 0x180074da3 retn ; +0x97, 0x180074da7