{"type": "func", "start": 6443383040, "end": 6443383244, "name": "fnEnum", "pseudocode": "// \n// fnEnum from 0x1800e3900 to 0x1800e39cc (204 bytes)\n// \n// 4 xrefs:\n// > sub_1800E3110 @ 0x1800e328a\n// > sub_1800E3630 @ 0x1800e389b\n// > <???> @ 0x1801c5394\n// > <???> @ 0x1801c53a0\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:22:37 +0000\n// \n\n__int64 __fastcall fnEnum(HMONITOR a1, HDC a2, LPRECT a3, __int64 a4)\n{\n  unsigned __int16 *v6; // rax\n  int v7; // ecx\n  int v8; // edx\n  __int64 result; // rax\n  int mi; // [rsp+20h] [rbp-88h] BYREF\n  __int128 mi_4; // [rsp+24h] [rbp-84h]\n  __int128 mi_20; // [rsp+34h] [rbp-74h]\n  _OWORD mi_36[4]; // [rsp+44h] [rbp-64h] BYREF\n  int v14; // [rsp+84h] [rbp-24h]\n\n  mi = 104;\n  mi_4 = 0;\n  v14 = 0;\n  mi_20 = 0;\n  memset(mi_36, 0, sizeof(mi_36));\n  if ( !GetMonitorInfoW(a1, (LPMONITORINFO)&mi) )\n    return 1;\n  v6 = (unsigned __int16 *)mi_36 + 2;\n  do\n  {\n    v7 = *(unsigned __int16 *)((char *)v6 + a4 + 264 - ((_QWORD)mi_36 + 4));\n    v8 = *v6 - v7;\n    if ( v8 )\n      break;\n    ++v6;\n  }\n  while ( v7 );\n  result = 1;\n  if ( !v8 )\n    *(_QWORD *)(a4 + 256) = a1;\n  return result;\n}", "assembly": "; \n; fnEnum from 0x1800e3900 to 0x1800e39cc (204 bytes)\n; \n; 4 xrefs:\n; > sub_1800E3110 @ 0x1800e328a\n; > sub_1800E3630 @ 0x1800e389b\n; > <???> @ 0x1801c5394\n; > <???> @ 0x1801c53a0\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:22:37 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800e3900\npush    rdi                                                            ; +0x5, 0x1800e3905\nsub     rsp, 0A0h                                                      ; +0x6, 0x1800e3906\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800e390d\nxor     rax, rsp                                                       ; +0x14, 0x1800e3914\nmov     [rsp+0A8h+var_18], rax                                         ; +0x17, 0x1800e3917\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x1800e391f\nmov     [rsp+0A8h+mi.cbSize], 68h ; 'h'                                ; +0x22, 0x1800e3922\nxor     eax, eax                                                       ; +0x2a, 0x1800e392a\nlea     rdx, [rsp+0A8h+mi]; lpmi                                       ; +0x2c, 0x1800e392c\nmovups  xmmword ptr [rsp+0A8h+mi.rcMonitor.left], xmm0                 ; +0x31, 0x1800e3931\nmov     [rsp+0A8h+var_24], eax                                         ; +0x36, 0x1800e3936\nmov     rbx, r9                                                        ; +0x3d, 0x1800e393d\nmovups  xmmword ptr [rsp+0A8h+mi.rcWork.left], xmm0                    ; +0x40, 0x1800e3940\nmov     rdi, rcx                                                       ; +0x45, 0x1800e3945\nmovups  xmmword ptr [rsp+0A8h+mi.dwFlags], xmm0                        ; +0x48, 0x1800e3948\nmovups  [rsp+0A8h+var_54], xmm0                                        ; +0x4d, 0x1800e394d\nmovups  [rsp+0A8h+var_44], xmm0                                        ; +0x52, 0x1800e3952\nmovups  [rsp+0A8h+var_34], xmm0                                        ; +0x57, 0x1800e3957\ncall    cs:GetMonitorInfoW                                             ; +0x5c, 0x1800e395c\ntest    eax, eax                                                       ; +0x62, 0x1800e3962\njz      short loc_1800E39A6                                            ; +0x64, 0x1800e3964\nlea     r8, [rbx+108h]                                                 ; +0x66, 0x1800e3966\nlea     rax, [rsp+48h]                                                 ; +0x6d, 0x1800e396d\nsub     r8, rax                                                        ; +0x72, 0x1800e3972\nnop     word ptr [rax+rax+00000000h]                                   ; +0x75, 0x1800e3975\nmovzx   edx, word ptr [rax]                                            ; +0x80, 0x1800e3980\nmovzx   ecx, word ptr [rax+r8]                                         ; +0x83, 0x1800e3983\nsub     edx, ecx                                                       ; +0x88, 0x1800e3988\njnz     short loc_1800E3994                                            ; +0x8a, 0x1800e398a\nadd     rax, 2                                                         ; +0x8c, 0x1800e398c\ntest    ecx, ecx                                                       ; +0x90, 0x1800e3990\njnz     short loc_1800E3980                                            ; +0x92, 0x1800e3992\nmov     eax, 1                                                         ; +0x94, 0x1800e3994\ntest    edx, edx                                                       ; +0x99, 0x1800e3999\njnz     short loc_1800E39AB                                            ; +0x9b, 0x1800e399b\nmov     [rbx+100h], rdi                                                ; +0x9d, 0x1800e399d\njmp     short loc_1800E39AB                                            ; +0xa4, 0x1800e39a4\nmov     eax, 1                                                         ; +0xa6, 0x1800e39a6\nmov     rcx, [rsp+0A8h+var_18]                                         ; +0xab, 0x1800e39ab\nxor     rcx, rsp; StackCookie                                          ; +0xb3, 0x1800e39b3\ncall    __security_check_cookie                                        ; +0xb6, 0x1800e39b6\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0xbb, 0x1800e39bb\nadd     rsp, 0A0h                                                      ; +0xc3, 0x1800e39c3\npop     rdi                                                            ; +0xca, 0x1800e39ca\nretn                                                                   ; +0xcb, 0x1800e39cb", "xrefs": ["sub_1800E3110 @ 0x1800e328a", "sub_1800E3630 @ 0x1800e389b", "<???> @ 0x1801c5394", "<???> @ 0x1801c53a0"], "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"}