Function at 0x1005efa0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100e5dd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x54], eax
mov edi, dword [ebp + 8]
lea esi, [eax + 0x14]
push esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], esi
call fcn.1007a062
add esp, 4
test eax, eax
je 0x1005eff1
push eax
call fcn.1007a0ff
add esp, 4
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
sete al
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cmp eax, 0x14
jge 0x1005f059
push str.__window_too_small
push str.UiApp::setup
push 0x100f3238
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
add esp, 8
mov ecx, eax
push edi
call fcn.10013d60
push eax
call fcn.10011fa0
add esp, 4
jmp 0x1005f311
push 0
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push eax
push 0
push 0x1005d560
push 3
mov dword [ebp - 0x50], eax
call edi
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push 0
push 0x1005d3f0
push 4
mov dword [ecx + 0x44], eax
call edi
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push 0
push 0x1005d490
push 0xc
mov dword [ecx + 0x48], eax
call edi
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x44], 0
mov dword [edx + 0x4c], eax
je 0x1005f214
cmp dword [edx + 0x48], 0
je 0x1005f214
test eax, eax
je 0x1005f214
mov edi, dword [ebp - 0x58]
lea ecx, [edx + 0x50]
mov eax, edi
xchg dword [ecx], eax
mov cl, byte [ebp - 0x5c]
lea eax, [edx + 0x54]
xchg byte [eax], cl
movups xmm0, xmmword [ebp - 0x48]
push str._height:
push str.__A
push str.UiApp::setup
push 0x100f3238
movups xmmword [edx + 0x58], xmm0
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
mov ecx, dword [ebp - 0x3c]
add esp, 8
sub ecx, dword [ebp - 0x44]
push str._width:
push ecx
mov ecx, eax
call fcn.1005d0d0
push eax
call fcn.10010a20
mov ecx, dword [ebp - 0x40]
add esp, 8
sub ecx, dword [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.1005d0d0
push eax
call fcn.10011fa0
add esp, 4
push str.__sending_window_info_to_client:
push str.UiApp::setup
push 0x100f3238
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
add esp, 8
mov ecx, eax
push edi
call fcn.10013d60
push eax
call fcn.10011fa0
add esp, 4
call fcn.10023ba0
mov edi, dword [eax + 0x70]
mov dword [ebp - 0x50], edi
test edi, edi
je 0x1005f186
lock inc dword [edi + 4]
mov edi, dword [eax + 0x70]
mov dword [ebp - 0x50], edi
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edi
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push 1
push dword [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call fcn.10057940
test edi, edi
je 0x1005f1d5
mov ecx, dword [ebp - 0x50]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1005f1d5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x50]
lock xadd dword [ecx + 8], edi
dec edi
jne 0x1005f1d5
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_f01d6785e073af7c053abc28b7224657___void___.0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1005dd00
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1005f20b
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov byte [ebp - 0x49], 1
jmp 0x1005f315
push str.__hookwindow_failed_for
push str.UiApp::setup
push 0x100f3238
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
add esp, 8
mov ecx, eax
push dword [ebp - 0x58]
call fcn.10013d60
push eax
call fcn.10011fa0
add esp, 4
push str._height:
push str.__B
push str.UiApp::setup
push 0x100f3238
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
add esp, 8
push eax
call fcn.10010a20
mov ecx, dword [ebp - 0x3c]
add esp, 8
sub ecx, dword [ebp - 0x44]
push str._width:
push ecx
mov ecx, eax
call fcn.1005d0d0
push eax
call fcn.10010a20
mov ecx, dword [ebp - 0x40]
add esp, 8
sub ecx, dword [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.1005d0d0
push eax
call fcn.10011fa0
add esp, 4
call fcn.10023ba0
mov edi, dword [eax + 0x70]
test edi, edi
je 0x1005f2bb
lock inc dword [edi + 4]
mov edi, dword [eax + 0x70]
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edi
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push 0
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call fcn.10057940
test edi, edi
je 0x1005f309
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1005f309
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x1005f309
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x54]
call fcn.1005f820
mov byte [ebp - 0x49], 0
push esi
mov dword [ebp - 4], 4
call fcn.1007a087
add esp, 4
test eax, eax
je 0x1005f332
push eax
call fcn.1007a0ff
add esp, 4
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret 4