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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ce38
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x491870]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x98]
xor ebx, ebx
cmp eax, ebx
je 0x4156b6
add eax, 6
cmp dword [esi + 0xa0], ebx
jne 0x4156b2
add dword [esp + 0x24], eax
jmp 0x4156b6
sub dword [esp + 0x2c], eax
mov ecx, esi
call fcn.0042b272
mov dword [esp + 0x14], 0x10
test al, 1
je 0x4156d3
mov dword [esp + 0x14], 0x15
jmp 0x4156df
test al, 2
je 0x4156df
mov dword [esp + 0x14], 0x12
test eax, 0x4000
je 0x4156ee
or dword [esp + 0x14], 0x8000
test eax, 0x8000
je 0x4156fd
or dword [esp + 0x14], 0x4020
test eax, 0x200
je 0x415709
or dword [esp + 0x14], 0x24
mov edi, dword [ebp + 8]
push 1
mov ecx, edi
call fcn.0042ec08
cmp dword [esi + 0x80], ebx
je 0x415730
cmp dword [esi + 0x84], ebx
je 0x415730
mov edx, dword [edi]
mov eax, dword [esi + 0x78]
mov edx, dword [edx + 0x30]
push eax
jmp 0x415739
mov eax, dword [edi]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, edi
call edx
call fcn.004159d0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push 0x4792fc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00407570
push 0x400
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x68], 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 + 0x3c]
sub ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
sub ebx, dword [esp + 0x38]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x28]
add edx, ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
xor ecx, ecx
cmp eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
jg 0x415981
mov edx, dword [esi + 0x54]
xor eax, eax
cmp dword [edx - 0xc], ecx
mov dword [esp + 0x1c], eax
jle 0x4158f3
test eax, eax
jl 0x4159c0
mov ecx, dword [esi + 0x54]
cmp eax, dword [ecx - 0xc]
jg 0x4159c0
movzx ecx, word [ecx + eax*2]
mov edx, 0xd
cmp dx, cx
je 0x4158e2
mov eax, 0xa
cmp ax, cx
jne 0x41584e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esi + 0x7c]
lea ecx, [eax + ebx]
add dword [esp + 0x30], ecx
mov eax, ecx
neg eax
sub dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
call fcn.00407230
inc dword [esp + 0x20]
jmp 0x4158de
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406c80
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x400
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x34]
cmp ecx, eax
jle 0x4158de
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x18]
dec eax
push ecx
call fcn.00415b80
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esi + 0x7c]
lea ecx, [eax + ebx]
add dword [esp + 0x30], ecx
mov eax, ecx
neg eax
sub dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
call fcn.00407230
mov eax, 1
sub dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x54]
inc eax
cmp eax, dword [ecx - 0xc]
mov dword [esp + 0x1c], eax
jl 0x4157de
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x7c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
dec edx
add eax, ebx
imul eax, edx
lea edx, [eax + ebx]
sub edi, ecx
cmp edi, edx
jge 0x415981
add eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ebx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00426c32
mov ecx, eax
call fcn.0042f0be
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x54]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0042b389
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00407700
int3