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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov ebx, eax
xor edi, edi
sub ebx, esi
cmp edx, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x1c], ebx
je 0x414d6c
cmp edx, edi
je 0x414d6c
cmp ebx, edi
jne 0x414a7f
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
jbe 0x4150e7
mov eax, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x2c], ecx
test esi, esi
jbe 0x414a4b
mov ecx, dword [ebp + 0xc]
mov eax, ebx
sub ecx, edx
mov edi, esi
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec edi
jne 0x414a39
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0
fild qword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add ebx, esi
dec edi
fdivr qword [0x442ed0]
mov dword [esp + 0x2c], edi
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
jne 0x414a2c
jmp 0x4150e7
mov al, byte [ebp + 0x20]
test al, al
je 0x414ab0
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], ebx
fld qword [0x442df8]
fdiv qword [eax + 0x1b90]
mov dword [esp + 0x44], edi
fild qword [esp + 0x40]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x414abd
mov eax, dword [ebp + 0x14]
xor edx, edx
div ebx
mov dword [esp + 0x10], eax
mov ecx, eax
xor eax, eax
mov dword [esp + 0xc], edi
cmp ebx, eax
jbe 0x414cc4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, ecx
mov edx, dword [ebp + 0xc]
imul eax, esi
mov dword [esp + 0x2c], eax
mov eax, ecx
imul eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea edx, [eax + ecx]
cmp eax, edx
mov dword [esp + 0x3c], edx
jae 0x414c95
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
test edi, edi
jbe 0x414b2d
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x18]
lea eax, [edx + eax - 1]
mov edx, dword [ebp + 0x18]
add eax, edx
mov edx, edi
mov byte [eax], 0xff
dec eax
dec edx
jne 0x414b26
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
xor eax, eax
dec ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov al, byte [esi + ebx - 1]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
sub ecx, edi
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x1c]
fild qword [esp + 0x48]
fild qword [esp + 0x50]
lea edi, [ecx + edx]
mov dword [esp + 0x30], edi
fdivp st(1)
fld qword [0x442ee8]
fsub st(1)
fild dword [esp + 0x34]
fmul st(1)
fld st(2)
fmul qword [0x442e28]
faddp st(1)
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 0x18]
add edi, esi
mov byte [edi + ecx - 1], al
lea edi, [esi - 1]
test edi, edi
jbe 0x414be3
mov edx, dword [esp + 0x30]
mov eax, ecx
lea ecx, [edx + eax - 1]
mov dword [esp + 0x38], ecx
xor edx, edx
xor eax, eax
mov dl, byte [ebx + edi - 1]
mov al, byte [ebx + edi]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fmul st(1)
fild dword [esp + 0x34]
fmul st(3)
faddp st(1)
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x38]
dec edi
mov byte [ecx + edi + 1], al
jne 0x414bac
xor edx, edx
mov dl, byte [ebx]
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fmul st(2)
fxch st(1)
fmul qword [0x442e28]
faddp st(1)
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x18]
fstp st(0)
mov byte [ecx + edx - 1], al
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0xc]
lea ecx, [eax - 1]
test ecx, ecx
jbe 0x414c39
mov edi, dword [esp + 0x18]
or eax, 0xffffffff
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
fild qword [esp + 0x58]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
add edx, ecx
fdivr qword [0x442ed0]
mov ecx, dword [esp + 0x3c]
add ebx, esi
mov dword [esp + 0x18], edx
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jb 0x414b10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
inc edi
add edx, eax
cmp edi, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], edx
jb 0x414aed
imul ecx, ebx
mov eax, dword [ebp + 0x14]
cmp ecx, eax
jae 0x4150e7
mov ebx, dword [ebp + 0x1c]
mov edx, ecx
imul edx, esi
mov edi, ecx
add edx, dword [ebp + 0xc]
imul edi, ebx
sub eax, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
xor eax, eax
test esi, esi
jbe 0x414d05
mov ecx, dword [ebp + 0x18]
add ecx, edi
mov bl, byte [edx + eax]
mov byte [ecx + eax], bl
inc eax
cmp eax, esi
jb 0x414cf7
mov ebx, dword [ebp + 0x1c]
cmp eax, ebx
jae 0x414d2c
mov ecx, dword [ebp + 0x18]
add edi, eax
add edi, ecx
mov ecx, ebx
sub ecx, eax
or eax, 0xffffffff
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [ebp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
fild qword [esp + 0x58]
add edx, esi
add edi, ebx
mov dword [esp + 0x30], edi
fdivr qword [0x442ed0]
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x414cec
jmp 0x4150e7
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
push 0
jne 0x414db6
push 0x1000
push 0x463cc0
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.00422b78
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x9002
push 0x463cb0
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x414e0d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0
push 0x1000
push 0x463c90
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.00422b78
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0x20]
test al, al
je 0x414e42
mov ecx, dword [ebp + 8]
mov dword [esp + 0x58], ebx
fld qword [0x442df8]
fdiv qword [ecx + 0x1b90]
mov dword [esp + 0x5c], 0
fild qword [esp + 0x58]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x414e4f
mov eax, dword [ebp + 0x14]
xor edx, edx
div ebx
mov dword [esp + 0x10], eax
mov ecx, eax
xor eax, eax
cmp ebx, eax
mov dword [esp + 0xc], eax
jbe 0x415037
mov edx, ecx
mov dword [esp + 0x28], eax
imul edx, esi
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
lea edx, [edi + ebx - 1]
mov dword [esp + 0x18], edx
jmp 0x414e7f
mov eax, dword [esp + 0x28]
lea edx, [eax + ecx]
mov dword [esp + 0x14], eax
cmp eax, edx
mov dword [esp + 0x3c], edx
jae 0x415005
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
jmp 0x414ea8
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test edx, edx
jbe 0x414eba
mov eax, dword [ebp + 0x1c]
lea eax, [edi + eax - 1]
mov byte [eax], 0xff
dec eax
dec edx
jne 0x414eb3
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
xor eax, eax
dec ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
xor ecx, ecx
mov cl, byte [ebx + esi - 1]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], edx
fild qword [esp + 0x58]
fild qword [esp + 0x50]
fdivp st(1)
fld qword [0x442ee8]
fsub st(1)
fild dword [esp + 0x40]
fmul st(1)
fld st(2)
fmul qword [0x442e28]
faddp st(1)
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x18]
lea edi, [esi - 1]
test edi, edi
mov byte [edx + esi], al
jbe 0x414f51
xor eax, eax
xor ecx, ecx
mov al, byte [ebx + edi - 1]
mov cl, byte [ebx + edi]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
mov dword [esp + 0x40], ecx
fmul st(1)
fild dword [esp + 0x40]
fmul st(3)
faddp st(1)
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x18]
dec edi
mov byte [edx + edi + 1], al
jne 0x414f1a
xor eax, eax
mov al, byte [ebx]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul st(2)
fxch st(1)
fmul qword [0x442e28]
faddp st(1)
fadd qword [0x442de0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
fstp st(0)
mov byte [ecx], al
mov ecx, dword [esp + 0xc]
sub edx, ecx
lea ecx, [edx - 1]
test ecx, ecx
jbe 0x414fa2
mov edi, dword [esp + 0x20]
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x68]
call dword [edx + 0x40]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
fild qword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
add ebx, esi
fdivr qword [0x442ed0]
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x414e9c
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
add eax, ecx
inc edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
dec edx
cmp eax, ebx
mov dword [esp + 0x18], edx
jb 0x414e7b
imul ecx, ebx
mov eax, dword [ebp + 0x14]
cmp ecx, eax
jae 0x4150cb
mov ebx, ecx
mov edx, dword [ebp + 0xc]
imul ebx, esi
add ebx, edx
sub eax, ecx
mov dword [esp + 0x30], eax
xor eax, eax
test esi, esi
jbe 0x415066
mov cl, byte [ebx + eax]
mov byte [edi + eax], cl
inc eax
cmp eax, esi
jb 0x41505b
mov ecx, dword [ebp + 0x1c]
cmp eax, ecx
jae 0x415089
sub ecx, eax
add edi, eax
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x60]
push ecx
push edi
lea ecx, [esp + 0x68]
call dword [eax + 0x40]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], ecx
mov eax, dword [ebp + 8]
fild qword [esp + 0x58]
add ebx, esi
fdivr qword [0x442ed0]
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x415055
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFile::Close
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.00422b78
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret