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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cf08
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x491830]
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 0x415486
add eax, 6
cmp dword [esi + 0xa0], ebx
jne 0x415482
add dword [esp + 0x24], eax
jmp 0x415486
sub dword [esp + 0x2c], eax
mov ecx, esi
call fcn.0042b6dd
mov dword [esp + 0x14], 0x10
test al, 1
je 0x4154a3
mov dword [esp + 0x14], 0x15
jmp 0x4154af
test al, 2
je 0x4154af
mov dword [esp + 0x14], 0x12
test eax, 0x4000
je 0x4154be
or dword [esp + 0x14], 0x8000
test eax, 0x8000
je 0x4154cd
or dword [esp + 0x14], 0x4020
test eax, 0x200
je 0x4154d9
or dword [esp + 0x14], 0x24
mov edi, dword [ebp + 8]
push 1
mov ecx, edi
call fcn.0042eef3
cmp dword [esi + 0x80], ebx
je 0x415500
cmp dword [esi + 0x84], ebx
je 0x415500
mov edx, dword [edi]
mov eax, dword [esi + 0x78]
mov edx, dword [edx + 0x30]
push eax
jmp 0x415509
mov eax, dword [edi]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, edi
call edx
call fcn.004157a0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push 0x47927c
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.00406f00
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 0x415751
mov edx, dword [esi + 0x54]
xor eax, eax
cmp dword [edx - 0xc], ecx
mov dword [esp + 0x1c], eax
jle 0x4156c3
test eax, eax
jl 0x415790
mov ecx, dword [esi + 0x54]
cmp eax, dword [ecx - 0xc]
jg 0x415790
movzx ecx, word [ecx + eax*2]
mov edx, 0xd
cmp dx, cx
je 0x4156b2
mov eax, 0xa
cmp ax, cx
jne 0x41561e
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.00406bc0
inc dword [esp + 0x20]
jmp 0x4156ae
push ecx
lea ecx, [esp + 0x1c]
call fcn.004065e0
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 0x4156ae
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x18]
dec eax
push ecx
call fcn.00415950
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.00406bc0
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 0x4155ae
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 0x415751
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.0042709b
mov ecx, eax
call fcn.0042f3a9
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.0042b7f4
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 0x415779
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.00407090
int3