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

Disassembly:
sub esp, 0x34
mov eax, dword [0x462044]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
mov ebx, ecx
push eax
push 0xf3c
call fcn.0040ede4
mov ebp, dword [esp + 0x34]
mov ecx, ebx
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
sub eax, ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
push eax
push 0xf3d
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
call fcn.0040ede4
mov eax, dword [esp + 0x34]
sub eax, ebp
xor ebp, ebp
push 1
push ebp
push dword [ebx + 4]
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [esp + 0x4c]
lea eax, [esi + esi]
push 0xa
mov dword [esp + 0x18], eax
sub edi, eax
mov esi, 0x320
pop ebp
push esi
mov ecx, ebx
call fcn.0040ed34
cmp eax, edi
jle 0x42d45b
imul eax, esi, 9
xor edx, edx
div ebp
mov esi, eax
cmp esi, 0x28
ja 0x42d441
mov eax, dword [esp + 0x50]
sub eax, dword [ebx + 0x7c]
sub eax, dword [esp + 0x1c]
push edi
push 0x67
push dword [ebx + 4]
shr esi, 2
mov dword [ebx + 0x144], esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x5c], eax
call esi
push eax
lea ecx, [ebx + 4]
call fcn.0042ad34
push edi
push 0x66
push dword [ebx + 4]
call esi
push eax
lea ecx, [ebx + 4]
call fcn.0042ad34
push edi
push 0x64
push dword [ebx + 4]
call esi
push eax
lea ecx, [ebx + 4]
call fcn.0042ad34
mov esi, dword [ebx + 0x78]
mov ecx, dword [esp + 0x18]
push 2
imul eax, esi, 3
pop edx
push 0
pop ebp
add eax, dword [esp + 0x14]
jmp 0x42d4ca
cmp ecx, 5
jl 0x42d4d4
dec ecx
sub eax, edx
mov dword [esp + 0x10], ecx
cmp eax, edi
jg 0x42d4c2
jmp 0x42d4e5
add ecx, ecx
mov eax, edi
sub eax, ecx
push 3
pop ecx
cdq
idiv ecx
push 2
mov esi, eax
pop edx
lea eax, [esp + 0x30]
cmp esi, edx
push eax
push 0x65
mov ecx, ebx
cmovl esi, edx
call fcn.0040ede4
mov eax, dword [esp + 0x50]
mov ecx, edi
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
imul eax, dword [ebx + 0x7c], 3
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 2
add eax, dword [ebx + 0x7c]
cmp edx, eax
jge 0x42d52d
mov edx, eax
lea eax, [esi + esi]
cmp ecx, eax
jle 0x42d52d
sub ecx, esi
push 1
push edx
push ecx
push dword [esp + 0x40]
push dword [esp + 0x28]
push dword [ebx + 0xb4]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x4c]
mov ecx, ebx
push 1
push dword [ebx + 0x7c]
sub eax, esi
sub eax, dword [esp + 0x20]
push esi
push dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
push eax
push 2
call fcn.0040ee0e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
add eax, esi
push 1
push dword [ebx + 0x7c]
sub ecx, eax
push esi
push dword [esp + 0x5c]
mov dword [esp + 0x5c], ecx
push ecx
push 0x1be
mov ecx, ebx
call fcn.0040ee0e
mov eax, dword [esp + 0x4c]
mov ecx, ebx
sub eax, dword [esp + 0x10]
push 1
push dword [ebx + 0x7c]
sub eax, esi
push esi
push dword [esp + 0x5c]
push eax
push 0x1bc
call fcn.0040ee0e
push 0x3c
mov ecx, ebx
call fcn.0040ed34
push 0x48
mov ecx, ebx
mov esi, eax
call fcn.0040ed34
push 4
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0040ed34
mov edx, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + esi]
lea ecx, [edx + ecx*2]
cmp ecx, edi
jge 0x42d5ee
mov eax, edi
sub eax, ecx
push 3
cdq
pop ecx
idiv ecx
add esi, eax
jmp 0x42d5fe
lea ecx, [eax + eax]
mov eax, edi
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 0x1c]
test esi, esi
cmovns ecx, esi
mov esi, edx
add eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
add eax, eax
sub edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
cmp ebp, 0xa
jb 0x42d640
push 0xa
pop eax
cmp ebp, eax
mov eax, dword [esp + 0x28]
cmove esi, edx
add eax, edi
add eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov edx, dword [ebp*4 + 0x452a20]
test edx, edx
je 0x42d660
push 1
push dword [esp + 0x24]
push ecx
push esi
push eax
push edx
mov ecx, ebx
call fcn.0040ee0e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 1
push dword [esp + 0x24]
add eax, ecx
mov ecx, ebx
push dword [esp + 0x18]
push esi
push eax
push dword [ebp*4 + 0x452a24]
call fcn.0040ee0e
add esi, dword [esp + 0x2c]
add ebp, 2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp ebp, 0x14
jb 0x42d61d
mov ecx, dword [esp + 0x40]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043d1f0
add esp, 0x34
ret 0xc