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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x54f018]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x164], edi
jle 0x42fc89
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x15c]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
sub ebx, ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x28]
fidiv dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
sub eax, edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x20]
push 5
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
fstp dword [esp + 0x14]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fidiv dword [esp + 0x18]
fstp dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4345]
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x42fc89
mov ebx, dword [sym.imp.mfc100.dll_Ordinal_12962]
mov edi, dword [sym.imp.mfc100.dll_Ordinal_7933]
mov eax, dword [esp + 0x18]
fld dword [esp + 0xc]
mov edx, dword [eax]
fld dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 8], ecx
fild dword [esp + 8]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0x14]
fmul st(2)
mov dword [esp + 0x48], eax
fiadd dword [esp + 0x4c]
call fcn.004f36d0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x24]
mov dword [esp + 8], eax
fild dword [esp + 8]
fmulp st(2)
fild dword [esp + 0x54]
faddp st(2)
fxch st(1)
call fcn.004f36d0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
mov dword [esp + 8], eax
fild dword [esp + 8]
fmul st(1)
fiadd dword [esp + 0x50]
call fcn.004f36d0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x28]
mov dword [esp + 8], eax
fimul dword [esp + 8]
fiadd dword [esp + 0x58]
call fcn.004f36d0
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.mfc100.dll_Ordinal_11882]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call edi
push 0x450
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_4785]
cmp dword [esp + 0x14], eax
jne 0x42fc66
mov edx, dword [esi + 0xdc]
xor eax, eax
lea ecx, [esp + 0x5c]
push ecx
push eax
push 0x130a
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov ecx, dword [esi + 0xdc]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x130]
mov dword [esp + 0x44], eax
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x134]
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x13c]
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x140]
call edi
mov ecx, dword [esp + 0x38]
push 1
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x144]
call edi
mov eax, dword [esi + 0xdc]
push 0
push 0
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 4
ja case.0x42fbb9.0
jmp dword [eax*4 + 0x42fc9c]
mov ecx, dword [esi + 0x130]
push 0
call ebx
push 5
jmp 0x42fc40
mov ecx, dword [esi + 0x130]
push 0
call ebx
mov ecx, dword [esi + 0x134]
push 0
call ebx
push 5
jmp 0x42fc4a
mov ecx, dword [esi + 0x130]
push 0
call ebx
mov ecx, dword [esi + 0x134]
push 0
call ebx
mov ecx, dword [esi + 0x13c]
push 0
call ebx
push 5
jmp 0x42fc54
mov ecx, dword [esi + 0x130]
push 0
call ebx
mov ecx, dword [esi + 0x134]
push 0
call ebx
mov ecx, dword [esi + 0x13c]
push 0
call ebx
mov ecx, dword [esi + 0x140]
push 0
call ebx
push 5
jmp 0x42fc5e
mov ecx, dword [esi + 0x130]
push 5
call ebx
push 0
mov ecx, dword [esi + 0x134]
call ebx
push 0
mov ecx, dword [esi + 0x13c]
call ebx
push 0
mov ecx, dword [esi + 0x140]
call ebx
push 0
mov ecx, dword [esi + 0x144]
call ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4345]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42f9a6
mov ecx, dword [esp + 0x6c]
pop edi
pop ebx
xor ecx, esp
call fcn.004e8d32
mov esp, ebp
pop ebp
ret