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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc955
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x364
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x378], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x378], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x378], 2
call sub.MFC42.DLL_CString::CString
push 0x4ff2f4
lea ecx, [esp + 0x24]
mov byte [esp + 0x37c], 3
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov eax, dword [edi]
push 6
push eax
push 0x4fe7d8
push 1
lea ecx, [esp + 0x18c]
mov byte [esp + 0x390], 4
call fcn.004ce0c6
mov eax, dword [edi]
mov bl, 5
lea ecx, [esp + 0x174]
mov byte [esp + 0x378], bl
mov dword [esp + 0x200], eax
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 2
jne 0x4b56f5
mov byte [esp + 0x378], 6
jmp 0x4b5810
lea edx, [esp + 0x10]
lea ecx, [esp + 0x174]
push edx
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x37c], 7
call fcn.004ce0b4
lea ecx, [esp + 0x10]
mov byte [esp + 0x378], bl
call fcn.004ce042
lea eax, [esp + 0x10]
lea ecx, [esp + 0x174]
push eax
call sub.MFC42.DLL_CFileDialog::GetFileName
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x37c], 8
call fcn.004ce0b4
lea ecx, [esp + 0x10]
mov byte [esp + 0x378], bl
call fcn.004ce042
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x178]
call sub.MFC42.DLL_CFileDialog::GetFileTitle
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x37c], 9
call fcn.004ce0b4
lea ecx, [esp + 0x10]
mov byte [esp + 0x378], bl
call fcn.004ce042
lea edx, [esp + 0x10]
lea ecx, [esp + 0x174]
push edx
call sub.MFC42.DLL_CFileDialog::GetFileExt
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x37c], 0xa
call fcn.004ce0b4
lea ecx, [esp + 0x10]
mov byte [esp + 0x378], bl
call fcn.004ce042
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x18]
push 0x4fe6f0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4b57eb
mov byte [esp + 0x378], 0xb
jmp 0x4b5810
mov ecx, dword [esp + 0x14]
push 0x4fd484
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b58a1
mov byte [esp + 0x378], 0xc
lea ecx, [esp + 0x224]
call fcn.004ce042
lea ecx, [esp + 0x174]
mov byte [esp + 0x378], 4
call fcn.004ce09c
lea ecx, [esp + 0x20]
mov byte [esp + 0x378], 3
call fcn.004ce042
lea ecx, [esp + 0x18]
mov byte [esp + 0x378], 2
call fcn.004ce042
lea ecx, [esp + 0x1c]
mov byte [esp + 0x378], 1
call fcn.004ce042
lea ecx, [esp + 0x24]
mov byte [esp + 0x378], 0
call fcn.004ce042
lea ecx, [esp + 0x14]
mov dword [esp + 0x378], 0xffffffff
call fcn.004ce042
xor al, al
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.004ce0b4
xor eax, eax
mov ecx, 0x1e
mov dword [esp + 0x38], eax
lea edi, [esp + 0xfc]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0xf4]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x7c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x40], eax
push ecx
mov ecx, dword [esi + 0x4f8]
lea eax, [esp + 0x38]
push edx
push eax
push 0x61
mov dword [esp + 0x44], 0
call fcn.004457c0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x378], 0xd
lea edi, [esi + 0x474]
mov dword [esp + 0x10], 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push str._f___f___f_n
push ebx
call dword [sym.imp.MSVCRT.dll_fscanf]
fld dword [esp + 0x3c]
add esp, 0x14
lea ecx, [esp + 0x6c]
fstp qword [esp + 0x44]
fld dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push ecx
fstp qword [esp + 0x50]
fld dword [esp + 0x34]
lea eax, [esp + 0x68]
push edx
fstp qword [esp + 0x5c]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x104]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
push eax
call sub.GLU32.dll_gluProject
fld qword [0x4e1438]
fld qword [esp + 0x64]
fcomp qword [0x4e00c0]
fnstsw ax
test ah, 1
je 0x4b59db
fstp st(0)
fld qword [0x4e1488]
fmul qword [0x4e19a8]
fadd qword [esp + 0x64]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x5c]
fcomp qword [0x4e00c0]
mov dword [edi], eax
fnstsw ax
test ah, 1
jne 0x4b5a05
fld qword [0x4e1438]
jmp 0x4b5a0b
fld qword [0x4e1488]
fmul qword [0x4e19a8]
fadd qword [esp + 0x5c]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x40]
add edi, 8
sub ecx, eax
mov eax, dword [esp + 0x10]
dec ecx
dec eax
mov dword [edi - 4], ecx
mov dword [esp + 0x10], eax
jne 0x4b593f
mov ecx, esi
mov dword [esi + 0x470], 7
call fcn.004b4d10
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x224]
mov byte [esp + 0x378], 0xe
call fcn.004ce042
lea ecx, [esp + 0x174]
mov byte [esp + 0x378], 4
call fcn.004ce09c
lea ecx, [esp + 0x20]
mov byte [esp + 0x378], 3
call fcn.004ce042
lea ecx, [esp + 0x18]
mov byte [esp + 0x378], 2
call fcn.004ce042
lea ecx, [esp + 0x1c]
mov byte [esp + 0x378], 1
call fcn.004ce042
lea ecx, [esp + 0x24]
mov byte [esp + 0x378], 0
call fcn.004ce042
lea ecx, [esp + 0x14]
mov dword [esp + 0x378], 0xffffffff
call fcn.004ce042
mov ecx, dword [esp + 0x370]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4