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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFile::CFile
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], ebx
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
cmp edx, edi
mov byte [esp + 0x80], 1
je 0x413a94
cmp edx, ebx
je 0x413a94
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
fild qword [esp + 0x34]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
cmp ecx, eax
fstp qword [esp + 0x2c]
fild qword [esp + 0x34]
fst qword [esp + 0x34]
fdivr qword [esp + 0x2c]
fld qword [esp + 0x34]
fdiv qword [esp + 0x2c]
ja 0x41393a
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jbe 0x4138fd
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
xor edi, edi
cmp ecx, ebx
jbe 0x4138af
jmp 0x4137ad
xor ebx, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
fild qword [esp + 0x3c]
fmul st(2)
fld st(0)
call sub.MSVCRT.dll__ftol
lea ebx, [edi + 1]
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], ebx
mov esi, eax
fild qword [esp + 0x44]
mov dword [esp + 0x10], esi
fmul st(3)
fst qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], eax
fsubr st(1)
mov cl, byte [edx + esi]
mov dword [esp + 0x10], ecx
lea ecx, [esi + 1]
fsubr qword [0x442ee8]
cmp ecx, eax
fstp qword [esp + 0x34]
fstp st(0)
fld qword [esp + 0x34]
fdiv st(2)
fild dword [esp + 0x10]
fmulp st(1)
jae 0x41384b
mov edx, dword [esp + 0x1c]
fld qword [esp + 0x34]
sub edx, ecx
add edx, esi
mov esi, dword [ebp + 0xc]
add esi, edx
fadd qword [0x442ee8]
inc ecx
xor edx, edx
cmp ecx, eax
mov dl, byte [esi + ecx]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul st(3)
faddp st(2)
jb 0x41382d
fstp st(0)
fild dword [esp + 0x14]
cmp eax, dword [ebp + 0x10]
fsubr qword [esp + 0x2c]
fdiv st(3)
jae 0x41386f
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [edx + eax]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(1)
faddp st(2)
fstp st(0)
fadd qword [0x442de0]
fcom qword [0x442ee0]
fnstsw ax
test ah, 1
jne 0x41388c
fstp st(0)
fld qword [0x442e28]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x20]
mov byte [ecx + edi], al
mov eax, dword [ebp + 0x1c]
mov edi, ebx
cmp edi, eax
jb 0x4137ab
mov esi, dword [ebp + 0x14]
mov ecx, eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
fild qword [esp + 0x4c]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
add edi, eax
fdivr qword [0x442ed8]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x20]
add edi, ecx
mov dword [esp + 0x20], edi
fadd qword [edx + 0xb50]
fstp qword [edx + 0xb50]
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x28], edx
jne 0x41379f
fstp st(0)
fstp st(0)
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0
call fcn.00422b90
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xffffffff
call fcn.00422b78
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
cmp edi, ebx
fstp st(0)
mov byte [edx + 0x1b2], 1
jbe 0x4138ff
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x20], esi
xor esi, esi
cmp ecx, ebx
jbe 0x413a36
jmp 0x41396d
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
fild qword [esp + 0x4c]
fmul st(1)
fld st(0)
call sub.MSVCRT.dll__ftol
lea ebx, [esi + 1]
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], ebx
mov edi, eax
fild qword [esp + 0x44]
mov dword [esp + 0x10], edi
fmul st(2)
fst qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
cmp eax, edi
mov dword [esp + 0x14], eax
jbe 0x413a7c
fisub dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx + edi]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
cmp eax, edx
fsubr qword [0x442ee8]
fdiv st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fild dword [esp + 0x14]
fsubr qword [esp + 0x2c]
fdiv st(2)
jae 0x4139f3
xor edx, edx
mov dl, byte [ecx + eax]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fmul st(1)
faddp st(2)
fstp st(0)
fadd qword [0x442de0]
fcom qword [0x442ee0]
fnstsw ax
test ah, 1
jne 0x413a10
fstp st(0)
fld qword [0x442e28]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x20]
mov byte [ecx + esi], al
mov eax, dword [ebp + 0x1c]
mov esi, ebx
cmp esi, eax
jb 0x41396b
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
fild qword [esp + 0x3c]
mov esi, dword [esp + 0x20]
add esi, ecx
fdivr qword [0x442ed8]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
add esi, eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x28]
dec esi
mov dword [esp + 0x28], esi
fadd qword [edx + 0xb50]
fstp qword [edx + 0xb50]
jne 0x41395f
jmp 0x4138ff
mov edx, dword [esp + 0x18]
xor ecx, ecx
fstp st(0)
mov cl, byte [edx + eax]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
jmp 0x4139f5
mov esi, dword [ebp + 0x1c]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
push ebx
jne 0x413ab6
push 0x1000
push 0x463cc0
jmp 0x413ad8
push 0x9002
push 0x463cb0
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x413b16
push ebx
push 0x1000
push 0x463c90
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0
call fcn.00422b90
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xffffffff
call fcn.00422b78
mov ecx, dword [esp + 0x78]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
cmp esi, eax
fild qword [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
fstp qword [esp + 0x2c]
fild qword [esp + 0x4c]
fst qword [esp + 0x34]
fdivr qword [esp + 0x2c]
fst qword [esp + 0x54]
fld qword [esp + 0x34]
fdiv qword [esp + 0x2c]
fstp qword [esp + 0x5c]
ja 0x413cdb
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jbe 0x413e32
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jmp 0x413b72
fld qword [esp + 0x54]
mov eax, dword [ebp + 0x1c]
xor edi, edi
cmp eax, ebx
jbe 0x413cd7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
fild qword [esp + 0x4c]
fmul st(1)
fld st(0)
call sub.MSVCRT.dll__ftol
inc edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov esi, eax
fild qword [esp + 0x44]
mov dword [esp + 0x10], esi
fmul st(2)
fst qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x14], eax
fsubr st(1)
mov dl, byte [ecx + esi]
lea ecx, [esi + 1]
mov dword [esp + 0x10], edx
cmp ecx, eax
fsubr qword [0x442ee8]
fstp qword [esp + 0x34]
fstp st(0)
fld qword [esp + 0x34]
fdiv st(1)
fild dword [esp + 0x10]
fmulp st(1)
jae 0x413c19
mov edx, dword [esp + 0x20]
fld qword [esp + 0x34]
sub edx, ecx
add edx, esi
mov esi, dword [ebp + 0xc]
add esi, edx
fadd qword [0x442ee8]
inc ecx
xor edx, edx
cmp ecx, eax
mov dl, byte [ecx + esi]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul qword [esp + 0x5c]
faddp st(2)
jb 0x413bf9
fstp st(0)
fild dword [esp + 0x14]
cmp eax, dword [ebp + 0x10]
fsubr qword [esp + 0x2c]
fdiv st(2)
jae 0x413c3d
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov cl, byte [edx + eax]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(1)
faddp st(2)
fstp st(0)
fadd qword [0x442de0]
fcom qword [0x442ee0]
fnstsw ax
test ah, 1
jne 0x413c5a
fstp st(0)
fld qword [0x442e28]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x18]
mov byte [edi + ecx - 1], al
mov eax, dword [ebp + 0x1c]
cmp edi, eax
jb 0x413b7f
mov esi, dword [ebp + 0x14]
fstp st(0)
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x70]
call dword [edx + 0x40]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
fild qword [esp + 0x3c]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
fdivr qword [0x442ed8]
fadd qword [eax + 0xb50]
fstp qword [eax + 0xb50]
mov eax, dword [ebp + 0x10]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], edx
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
jne 0x413b6e
jmp 0x413e34
fstp st(0)
jmp 0x413c77
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
mov byte [edi + 0x1b2], 1
jbe 0x413e32
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
jmp 0x413d01
fld qword [esp + 0x54]
mov eax, dword [ebp + 0x1c]
xor esi, esi
cmp eax, ebx
jbe 0x413dd6
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
fild qword [esp + 0x4c]
fmul st(1)
fld st(0)
call sub.MSVCRT.dll__ftol
inc esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov edi, eax
fild qword [esp + 0x44]
mov dword [esp + 0x10], edi
fmul st(2)
fst qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
cmp eax, edi
mov dword [esp + 0x14], eax
jbe 0x413dc1
fisub dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [ecx + edi]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x10]
cmp eax, edx
fsubr qword [0x442ee8]
fdiv st(1)
fild dword [esp + 0x20]
fmulp st(1)
fild dword [esp + 0x14]
fsubr qword [esp + 0x2c]
fdiv st(2)
jae 0x413d8a
xor edx, edx
mov dl, byte [ecx + eax]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul st(1)
faddp st(2)
fstp st(0)
fadd qword [0x442de0]
fcom qword [0x442ee0]
fnstsw ax
test ah, 1
jne 0x413da7
fstp st(0)
fld qword [0x442e28]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x18]
mov byte [esi + ecx - 1], al
mov eax, dword [ebp + 0x1c]
cmp esi, eax
jb 0x413d0e
jmp 0x413dda
mov edx, dword [esp + 0x1c]
xor ecx, ecx
fstp st(0)
mov cl, byte [edx + eax]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
jmp 0x413d8c
fstp st(0)
jmp 0x413ddf
mov edi, dword [ebp + 8]
fstp st(0)
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x70]
call dword [edx + 0x40]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov ecx, dword [ebp + 0x10]
fild qword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add edx, ecx
dec eax
fdivr qword [0x442ed8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
fadd qword [edi + 0xb50]
fstp qword [edi + 0xb50]
jne 0x413cfd
jmp 0x413e34
fstp st(0)
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x413901