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

Disassembly:
push 0xffffffffffffffff
push 0x45cbe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x1f8], edi
call fcn.00413a30
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xa0]
cmp eax, ebp
mov byte [esp + 0x1f8], 4
mov dword [esp + 0x14], ebp
je 0x40892d
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x467328
push eax
call dword [ecx]
cmp dword [esp + 0x14], ebp
jne 0x40895f
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
mov byte [esp + 0x1f8], 2
je 0x40893f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f8], 5
call fcn.00434710
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x408a9b
lea ecx, [esp + 0x10]
push ecx
push 0x467308
push 0x17
push ebp
push 0x465604
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4089bd
push 0xffffffffffffffff
push ebp
push 0x83
call sub.MFC71.DLL_AfxMessageBox
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x1f8], 3
je 0x40899e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov byte [esp + 0x1f8], 2
je 0x408a8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408a8a
push edi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x208]
mov word [esp + 0x24], di
mov dword [esp + 0x28], 0xac44
mov word [esp + 0x26], 2
mov word [esp + 0x32], 0x10
mov word [esp + 0x30], 4
mov dword [esp + 0x2c], 0x2b110
mov word [esp + 0x34], bp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp eax, ebp
je 0x408a22
push 0xffffffffffffffff
push eax
call fcn.004024d0
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x408a28
push 0x8007000e
call fcn.00402310
xor edi, edi
mov dword [esp + 0x20], edi
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
mov byte [esp + 0x208], 6
call fcn.00408410
mov ecx, dword [esp + 0x1c]
call fcn.00408840
cmp eax, ebp
push edi
setl bl
mov byte [esp + 0x1fc], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x408ac6
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x1f8], 3
je 0x408a74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov byte [esp + 0x1f8], 2
je 0x408a8a
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f8], 1
call fcn.004082c0
lea ecx, [esp + 0x200]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x204]
mov dword [esp + 0x1f8], 0xffffffff
call fcn.00434710
xor al, al
jmp 0x408c83
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
call fcn.00435da0
mov ecx, dword [esi + 0x98]
lea eax, [esp + 0x204]
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x78]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1fc], 7
mov dword [esp + 0x44], edx
call fcn.004347b0
fld dword [esi + 0x78]
fdiv dword [esi + 0xf8]
mov ecx, dword [esi + 0x98]
xor edi, edi
fstp dword [esp + 0x54]
call fcn.004203f0
test eax, eax
jle 0x408b42
lea ecx, [ecx]
mov ecx, dword [esi + 0x98]
push edi
call fcn.004203d0
mov dword [eax + 0xdc], ebp
mov ecx, dword [esi + 0x98]
inc edi
call fcn.004203f0
cmp edi, eax
jl 0x408b20
lea ecx, [esp + 0x30]
call fcn.00440e60
lea ecx, [esp + 0x30]
call fcn.00440e90
test al, al
jne 0x408c05
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push ecx
call ebp
test eax, eax
je 0x408b94
call sub.MFC71.DLL_AfxGetThread
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x64]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call ebp
test eax, eax
jne 0x408b75
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
lea ecx, [esp + 0x204]
mov edi, eax
call fcn.00434720
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
lea ecx, [esp + 0x30]
fstp dword [esp + 0x18]
call fcn.00413b00
fmul dword [esp + 0x18]
fiadd dword [esi + 0xfc]
fild dword [esi + 0x100]
fdivr dword [0x465928]
fmulp st(1)
call fcn.0045b73c
push eax
push edi
call dword [ebx + 0x34]
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x408bf2
lea ecx, [esp + 0x30]
call fcn.00413b70
lea ecx, [esp + 0x30]
call fcn.00440e90
test al, al
je 0x408b62
xor ebp, ebp
lea ecx, [esp + 0x78]
mov byte [esp + 0x1f8], 4
call fcn.00435cf0
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x1f8], 3
je 0x408c2c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov byte [esp + 0x1f8], 2
je 0x408c42
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f8], 8
call fcn.00434710
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x200]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x204]
mov dword [esp + 0x1f8], 0xffffffff
call fcn.00434710
mov al, 1
mov ecx, dword [esp + 0x1f0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1ec
ret 0x10