Function at 0x58d5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x618ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [ebx + 0x1a8]
and eax, 0x200
push eax
push edi
mov dword [ebp - 0x74], edi
call fcn.0058bf60
xor esi, esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.0044ce39
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x58d660
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0x7c]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov edx, dword [eax + 0x20]
push edi
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x68], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x68], esi
jle 0x58d7cc
mov dword [ebp - 0x5c], esi
jmp 0x58d6a4
xor esi, esi
cmp eax, esi
jl 0x58d83e
cmp eax, dword [ebx + 0x7c]
jge 0x58d83e
mov esi, dword [ebx + 0x78]
add esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x38]
mov eax, dword [esi]
mov dword [ebp - 0x54], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x50], ecx
mov edx, dword [esi + 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x48], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x40], edx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x1c]
lea ecx, [eax - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
je 0x58d73d
cmp dword [edi + 0xc], 0
jl 0x58d730
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x58d730
push ecx
call fcn.00401780
mov dword [ebp - 0x6c], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58d725
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x10
mov dword [ebp - 0x38], ecx
jmp 0x58d73d
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401a60
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x34], edx
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [esi + 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x24], eax
mov cl, byte [esi + 0x34]
mov byte [ebp - 0x20], cl
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp - 0x54]
jne 0x58d7b8
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x64], edx
lea edx, [ebp - 0x64]
push edx
push eax
mov dword [ebp - 0x60], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
push eax
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x58d813
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x58d813
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x5c], 0x44
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x68]
jl 0x58d6a2
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x58d7f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x58d839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
jmp 0x58d7f5
call fcn.0044e075
int3