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

Disassembly:
push 0xffffffffffffffff
push 0x440a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x64]
xor ebp, ebp
cmp edx, edi
mov dword [esp + 0x58], ebp
je 0x413454
cmp edx, ebp
je 0x413454
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x78]
cmp ecx, ebx
jne 0x4132b7
cmp eax, esi
jne 0x4132b7
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
fild qword [esp + 0x30]
imul ecx, eax
fdivr qword [0x442ed0]
mov esi, edi
mov edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x60]
fadd qword [ecx + 0xb50]
fstp qword [ecx + 0xb50]
jmp 0x4136c3
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
fild qword [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
lea edi, [eax - 1]
cmp esi, ebp
fidiv dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x6c], ebp
fstp dword [esp + 0x18]
fild qword [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
fidiv dword [esp + 0x30]
fstp dword [esp + 0x14]
jbe 0x4136c3
mov dword [esp + 0x70], edx
jmp 0x41330c
mov edi, dword [esp + 0x10]
fild dword [esp + 0x6c]
fmul dword [esp + 0x14]
fld st(0)
call sub.MSVCRT.dll__ftol
lea ecx, [eax + 1]
mov dword [esp + 0x74], eax
cmp edi, ecx
jge 0x413328
mov ecx, edi
fild dword [esp + 0x74]
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x1c], edi
fsubr st(1)
fstp dword [esp + 0x74]
fstp st(0)
jbe 0x413412
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
imul eax, edx
imul ecx, edx
lea esi, [eax + ebp]
add ebp, ecx
fild dword [esp + 0x1c]
fmul dword [esp + 0x18]
fld st(0)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x68]
lea ecx, [eax + 1]
dec edx
mov dword [esp + 0x1c], eax
cmp edx, ecx
jge 0x413376
mov ecx, edx
mov dl, byte [esi + eax]
mov al, byte [eax + ebp]
mov byte [esp + 0x20], dl
mov dl, byte [esi + ecx]
fisub dword [esp + 0x1c]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x20]
mov cl, byte [ecx + ebp]
mov byte [esp + 0x28], dl
mov edx, dword [esp + 0x24]
and eax, 0xff
and edx, 0xff
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x30]
mov eax, dword [esp + 0x28]
and ecx, 0xff
and eax, 0xff
fmul dword [esp + 0x74]
sub ecx, eax
mov dword [esp + 0x30], ecx
fiadd dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x30]
fmul dword [esp + 0x74]
fiadd dword [esp + 0x1c]
fsub st(1)
fmul st(2)
fadd st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x70]
inc edi
fstp st(0)
mov byte [edx + edi - 1], al
cmp edi, ebx
fstp st(0)
mov dword [esp + 0x1c], edi
jb 0x413355
mov esi, dword [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebp
fild qword [esp + 0x38]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
add edx, ebx
fdivr qword [0x442ed0]
mov dword [esp + 0x70], edx
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [esp + 0x6c]
inc eax
cmp eax, esi
mov dword [esp + 0x6c], eax
jb 0x413308
jmp 0x4136c3
mov ebx, dword [esp + 0x74]
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x70], esi
push ebp
jne 0x4134a2
push 0x1000
push 0x463cc0
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xffffffff
call fcn.00422b78
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 0x9002
push 0x463cb0
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4134f9
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebp
push 0x1000
push 0x463c90
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xffffffff
call fcn.00422b78
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x6c]
fild qword [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x78]
lea edi, [eax - 1]
fidiv dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
cmp esi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x6c], ebp
fstp dword [esp + 0x18]
fild qword [esp + 0x38]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebp
fidiv dword [esp + 0x38]
fstp dword [esp + 0x14]
jbe 0x4136a3
jmp 0x413556
mov edi, dword [esp + 0x10]
fild dword [esp + 0x6c]
fmul dword [esp + 0x14]
fld st(0)
call sub.MSVCRT.dll__ftol
lea ecx, [eax + 1]
mov dword [esp + 0x74], eax
cmp edi, ecx
jge 0x413572
mov ecx, edi
fild dword [esp + 0x74]
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x1c], edi
fsubr st(1)
fstp dword [esp + 0x74]
fstp st(0)
jbe 0x41365f
imul eax, dword [esp + 0x68]
imul ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea ebp, [eax + edx]
mov eax, edx
lea esi, [ecx + eax]
fild dword [esp + 0x1c]
fmul dword [esp + 0x18]
fld st(0)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x68]
lea ecx, [eax + 1]
dec edx
mov dword [esp + 0x1c], eax
cmp edx, ecx
jge 0x4135c3
mov ecx, edx
mov dl, byte [eax + ebp]
mov al, byte [esi + eax]
mov byte [esp + 0x20], dl
mov dl, byte [ecx + ebp]
fisub dword [esp + 0x1c]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x20]
mov cl, byte [esi + ecx]
mov byte [esp + 0x28], dl
mov edx, dword [esp + 0x24]
and eax, 0xff
and edx, 0xff
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x30]
mov eax, dword [esp + 0x28]
and ecx, 0xff
and eax, 0xff
fmul dword [esp + 0x74]
sub ecx, eax
mov dword [esp + 0x30], ecx
fiadd dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x30]
fmul dword [esp + 0x74]
fiadd dword [esp + 0x1c]
fsub st(1)
fmul st(2)
fadd st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x70]
inc edi
fstp st(0)
mov byte [edi + edx - 1], al
cmp edi, ebx
fstp st(0)
mov dword [esp + 0x1c], edi
jb 0x4135a2
mov esi, dword [esp + 0x78]
xor ebp, ebp
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
push ebx
push eax
lea ecx, [esp + 0x48]
call dword [edx + 0x40]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebp
fild qword [esp + 0x38]
mov eax, dword [esp + 0x60]
fdivr qword [0x442ed0]
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [esp + 0x6c]
inc eax
cmp eax, esi
mov dword [esp + 0x6c], eax
jb 0x413552
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xffffffff
call fcn.00422b78
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret