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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d3deb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor esi, esi
cmp edi, esi
je 0x42c40c
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x60]
sub ebx, dword [esp + 0x58]
push fcn.00404ea0
sub ebx, 2
mov eax, ebx
cdq
push fcn.00404bf0
sub eax, edx
push 5
sar eax, 1
push 4
lea edx, [esp + 0x48]
sub eax, 0x32
push edx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
call fcn.004f5429
push esi
push 0x60518f
lea ecx, [esp + 0x40]
mov dword [esp + 0xa8], esi
call fcn.004051d0
push 0x185
lea eax, [esp + 0x38]
push eax
call fcn.00422da0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 1
call fcn.00404ec0
mov byte [esp + 0xa0], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
push 2
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub ebx, eax
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + esi*4 + 0x38], 0
je 0x42c32c
mov eax, dword [esp + esi*4 + 0x38]
lea ecx, [esp + esi*4 + 0x38]
sub eax, 0x10
mov dword [esp + 0x10], 0x1f
mov dword [esp + 0x14], 0
cmp dword [eax + 0xc], 1
jle 0x42c2d5
mov edx, dword [eax + 4]
push edx
call fcn.00405490
cmp dword [esp + esi*4 + 0x3c], 0
mov eax, dword [esp + esi*4 + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
jne 0x42c2f5
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0xc]
sub eax, 2
jmp 0x42c307
mov eax, dword [esp + esi*4 + 0x4c]
imul eax, dword [esp + 0x30]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov edx, dword [edi + 0x20]
add dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
push esi
push 0x101b
push edx
mov dword [esp + 0x28], eax
call ebx
add esi, 1
cmp esi, 2
jl 0x42c2a0
xor eax, eax
xor esi, esi
cmp dword [esp + 0x38], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
je 0x42c385
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x10]
push eax
push esi
push 0x101a
push ecx
mov dword [esp + 0x20], 9
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], esi
call ebx
add esi, 1
cmp dword [esp + esi*4 + 0x38], 0
jne 0x42c356
mov edx, dword [edi + 0x74]
xor esi, esi
push esi
push esi
push 0x1200
push edx
call ebx
test eax, eax
jle 0x42c3ee
mov ecx, dword [edi + 0x74]
lea eax, [esp + 0x68]
push eax
push esi
push 0x1203
push ecx
mov dword [esp + 0x78], 0x24
call ebx
or dword [esp + 0x7c], 0x800
mov ecx, dword [edi + 0x74]
xor edx, edx
test esi, esi
lea eax, [esp + 0x68]
push eax
sete dl
push esi
push 0x1204
push ecx
mov dword [esp + 0x94], edx
call ebx
mov edx, dword [edi + 0x74]
push 0
push 0
push 0x1200
push edx
add esi, 1
call ebx
cmp esi, eax
jl 0x42c398
push fcn.00404ea0
push 5
push 4
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xb0], 0xffffffff
call fcn.004f53c6
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret