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

Disassembly:
push 0xffffffffffffffff
push 0x45b570
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.00413940
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 0x4088bd
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x466300
push eax
call dword [ecx]
cmp dword [esp + 0x14], ebp
jne 0x4088ef
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
mov byte [esp + 0x1f8], 2
je 0x4088cf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f8], 5
call fcn.00433fc0
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x408a2b
lea ecx, [esp + 0x10]
push ecx
push 0x4662e0
push 0x17
push ebp
push 0x4645dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40894d
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 0x40892e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov byte [esp + 0x1f8], 2
je 0x408a1a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408a1a
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 0x4089b2
push 0xffffffffffffffff
push eax
call fcn.004024b0
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x4089b8
push 0x8007000e
call fcn.00402330
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.00408390
mov ecx, dword [esp + 0x1c]
call fcn.004087d0
cmp eax, ebp
push edi
setl bl
mov byte [esp + 0x1fc], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x408a56
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x1f8], 3
je 0x408a04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov byte [esp + 0x1f8], 2
je 0x408a1a
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f8], 1
call fcn.00408250
lea ecx, [esp + 0x200]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x204]
mov dword [esp + 0x1f8], 0xffffffff
call fcn.00433fc0
xor al, al
jmp 0x408c13
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
call fcn.00435570
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.00434060
fld dword [esi + 0x78]
fdiv dword [esi + 0xf8]
mov ecx, dword [esi + 0x98]
xor edi, edi
fstp dword [esp + 0x54]
call fcn.0041ffd0
test eax, eax
jle 0x408ad2
lea ecx, [ecx]
mov ecx, dword [esi + 0x98]
push edi
call fcn.0041ffb0
mov dword [eax + 0xdc], ebp
mov ecx, dword [esi + 0x98]
inc edi
call fcn.0041ffd0
cmp edi, eax
jl 0x408ab0
lea ecx, [esp + 0x30]
call fcn.00440600
lea ecx, [esp + 0x30]
call fcn.00440640
test al, al
jne 0x408b95
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 0x408b24
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 0x408b05
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
lea ecx, [esp + 0x204]
mov edi, eax
call fcn.00433fd0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
lea ecx, [esp + 0x30]
fstp dword [esp + 0x18]
call fcn.00413a10
fmul dword [esp + 0x18]
fiadd dword [esi + 0xfc]
fild dword [esi + 0x100]
fdivr dword [0x464900]
fmulp st(1)
call fcn.0045a0cc
push eax
push edi
call dword [ebx + 0x34]
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x408b82
lea ecx, [esp + 0x30]
call fcn.00413a80
lea ecx, [esp + 0x30]
call fcn.00440640
test al, al
je 0x408af2
xor ebp, ebp
lea ecx, [esp + 0x78]
mov byte [esp + 0x1f8], 4
call fcn.004354c0
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x1f8], 3
je 0x408bbc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov byte [esp + 0x1f8], 2
je 0x408bd2
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f8], 8
call fcn.00433fc0
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.00433fc0
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