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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54bbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5a4e60]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x5a4e60]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xb8]
cmp eax, ebx
je 0x411084
add eax, 6
cmp dword [esi + 0xc0], ebx
jne 0x411080
add dword [esp + 0x30], eax
jmp 0x411084
sub dword [esp + 0x38], eax
mov ecx, esi
call fcn.004262fc
mov dword [esp + 0x18], 0x10
test al, 1
je 0x4110a1
mov dword [esp + 0x18], 0x15
jmp 0x4110ad
test al, 2
je 0x4110ad
mov dword [esp + 0x18], 0x12
test eax, 0x4000
je 0x4110bc
or dword [esp + 0x18], 0x8000
test eax, 0x8000
je 0x4110cb
or dword [esp + 0x18], 0x4020
test eax, 0x200
je 0x4110d7
or dword [esp + 0x18], 0x24
push 1
mov ecx, edi
call fcn.0042b4f0
cmp dword [esi + 0xa0], ebx
je 0x4110fe
cmp dword [esi + 0xa4], ebx
je 0x4110fe
mov edx, dword [edi]
mov eax, dword [esi + 0x98]
mov edx, dword [edx + 0x30]
push eax
jmp 0x41110a
mov eax, dword [edi]
mov ecx, dword [esi + 0x94]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, edi
call edx
call fcn.00411410
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push 0x57d1a4
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00404770
push 0x400
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x78], ebx
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0xb
push str.Km_uIlW_eg
mov ecx, edi
call edx
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
sub ebx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x34]
add edx, ebx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
cmp eax, edx
jg 0x4113bb
mov edx, dword [esi + 0x74]
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [edx - 0xc], ecx
jle 0x41132a
test eax, eax
js 0x411405
mov ecx, dword [esi + 0x74]
cmp eax, dword [ecx - 0xc]
jg 0x411405
movzx ecx, word [ecx + eax*2]
mov edx, 0xd
mov dword [esp + 0x28], ecx
cmp dx, cx
je 0x411319
mov eax, 0xa
cmp ax, cx
jne 0x411225
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x9c]
add ecx, ebx
add dword [esp + 0x3c], ecx
mov eax, ecx
neg eax
sub dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
call fcn.004043f0
inc dword [esp + 0x20]
jmp 0x411315
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x2c], eax
inc eax
mov dword [esp + 0x24], eax
js 0x411405
mov eax, dword [edx - 8]
sub eax, dword [esp + 0x24]
mov ecx, 1
sub ecx, dword [edx - 4]
or eax, ecx
jge 0x411260
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404560
mov edx, dword [esp + 0x14]
mov ax, word [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov word [edx + ecx*2], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
cmp eax, dword [ecx - 8]
jg 0x411405
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x400
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
sub ecx, dword [esp + 0x30]
cmp eax, ecx
jle 0x411315
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
push 1
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.004115c0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x9c]
add ecx, ebx
add dword [esp + 0x3c], ecx
mov eax, ecx
neg eax
sub dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
call fcn.004043f0
mov eax, 1
sub dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x74]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx - 0xc]
jl 0x4111af
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x9c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
dec edx
add eax, ebx
imul eax, edx
lea edx, [eax + ebx]
sub edi, ecx
cmp edi, edx
jge 0x4113bb
add eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00421005
mov ecx, eax
call fcn.0042bc79
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x60]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.00426413
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00523022
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404970
int3