{"type": "func", "start": 6443720100, "end": 6443720220, "name": "__acrt_get_parent_window", "pseudocode": "// \n// __acrt_get_parent_window from 0x180135da4 to 0x180135e1c (120 bytes)\n// \n// 2 xrefs:\n// > unknown_libname_70 @ 0x1801393b6\n// > <???> @ 0x180203470\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 _acrt_get_parent_window()\n{\n  __int64 (*function)(void); // rax\n  __int64 v1; // rbx\n  FARPROC v2; // rax\n\n  function = try_get_function(7u, \"GetActiveWindow\", (unsigned int *)&unk_1801749D8, (unsigned int *)\"GetActiveWindow\");\n  if ( !function )\n    return 0;\n  v1 = function();\n  if ( !v1 )\n    return 0;\n  v2 = try_get_function(0xAu, \"GetLastActivePopup\", (unsigned int *)\"\\r\", (unsigned int *)\"GetLastActivePopup\");\n  if ( v2 )\n    return ((__int64 (__fastcall *)(__int64))v2)(v1);\n  else\n    return v1;\n}", "assembly": "; \n; __acrt_get_parent_window from 0x180135da4 to 0x180135e1c (120 bytes)\n; \n; 2 xrefs:\n; > unknown_libname_70 @ 0x1801393b6\n; > <???> @ 0x180203470\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x180135da4\nsub     rsp, 20h                                                       ; +0x2, 0x180135da6\nlea     r9, aGetactivewindo                                            ; +0x6, 0x180135daa\nmov     ecx, 7                                                         ; +0xd, 0x180135db1\nlea     r8, unk_1801749D8                                              ; +0x12, 0x180135db6\nlea     rdx, aGetactivewindo                                           ; +0x19, 0x180135dbd\ncall    ?try_get_function@@YAPEAXW4function_id@?A0x37284e77@@QEBDQEBW4module_id@2@2@Z ; +0x20, 0x180135dc4\ntest    rax, rax                                                       ; +0x25, 0x180135dc9\njz      short loc_180135E14                                            ; +0x28, 0x180135dcc\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x2a, 0x180135dce\nmov     rbx, rax                                                       ; +0x30, 0x180135dd4\ntest    rax, rax                                                       ; +0x33, 0x180135dd7\njz      short loc_180135E14                                            ; +0x36, 0x180135dda\nlea     r9, aGetlastactivep                                            ; +0x38, 0x180135ddc\nmov     ecx, 0Ah                                                       ; +0x3f, 0x180135de3\nlea     r8, asc_1801749F0                                              ; +0x44, 0x180135de8\nlea     rdx, aGetlastactivep                                           ; +0x4b, 0x180135def\ncall    ?try_get_function@@YAPEAXW4function_id@?A0x37284e77@@QEBDQEBW4module_id@2@2@Z ; +0x52, 0x180135df6\ntest    rax, rax                                                       ; +0x57, 0x180135dfb\njnz     short loc_180135E05                                            ; +0x5a, 0x180135dfe\nmov     rax, rbx                                                       ; +0x5c, 0x180135e00\njmp     short loc_180135E16                                            ; +0x5f, 0x180135e03\nmov     rcx, rbx                                                       ; +0x61, 0x180135e05\nadd     rsp, 20h                                                       ; +0x64, 0x180135e08\npop     rbx                                                            ; +0x68, 0x180135e0c\njmp     cs:__guard_dispatch_icall_fptr                                 ; +0x69, 0x180135e0d\nxor     eax, eax                                                       ; +0x70, 0x180135e14\nadd     rsp, 20h                                                       ; +0x72, 0x180135e16\npop     rbx                                                            ; +0x76, 0x180135e1a\nretn                                                                   ; +0x77, 0x180135e1b", "xrefs": ["unknown_libname_70 @ 0x1801393b6", "<???> @ 0x180203470"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}