Function at 0x401750
Capabilities:
Delete file
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4031c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xcc]
lea ecx, [ebp + 0xcc]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax - 8]
test edx, edx
je 0x401ce1
push 0
push 6
push 3
push 0
push 1
push 0x80000000
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ce1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x4017d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401ce1
lea edi, [eax + 1]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x40184f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401ce1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401871
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp + 0xc8]
push ebx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi]
xor esi, esi
mov dword [esp + 0xa4], esi
cmp dword [eax - 8], esi
jle 0x401ccd
movsx ebx, byte [eax]
mov edx, eax
lea eax, [esp + 0x28]
push edx
push ebx
push str.The_total_number_is___d___and_content_is___s__exit._n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp ebx, 0x11
jl 0x401cc3
mov ecx, dword [edi]
cmp ebx, dword [ecx - 8]
jg 0x401cc3
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 1
call sub.MFC42.DLL_CString::CString_2
push 8
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 2
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esp + 0x58]
mov byte [esp + 0xa4], 3
push eax
push 0x406054
push ecx
call edi
mov edx, dword [esp + 0x64]
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push 0x406038
push eax
mov dword [esp + 0x54], edx
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 4
call fcn.00402c88
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 3
call fcn.00402b86
push 0x406034
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
push 8
lea ecx, [esp + 0x4c]
push 9
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x44]
push edx
push 0x406054
push eax
mov byte [esp + 0xb0], 5
call edi
add esp, 0xc
lea ecx, [esp + 0x38]
push 4
push 0x11
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push 4
lea edx, [esp + 0x44]
push 0x15
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 6
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [esp + 0x10]
mov byte [esp + 0xa4], 7
mov cl, byte [eax + 0x19]
mov dl, byte [eax + 0x1a]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], dl
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], eax
push ecx
call esi
movsx esi, byte [esp + 0x1e]
movsx edi, byte [esp + 0x1f]
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], eax
sub esi, 0x30
sub edi, 0x30
call sub.MFC42.DLL_CString::CString_1
cmp ebx, 0x12
mov byte [esp + 0xa4], 8
je 0x401a70
cmp ebx, 0x11
je 0x401a70
lea edx, [ebx - 0x1a]
lea eax, [esp + 0x24]
push edx
push 0x1b
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 9
call fcn.00402c88
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 8
call fcn.00402b86
jmp 0x401a7e
push 0x40616c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
add ebx, 4
lea ecx, [esp + 0x3c]
push ebx
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [ebp + 0x6c]
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0xa4], 0xa
cmp eax, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebx
jle 0x401ae2
mov ecx, dword [ebp + 0x68]
mov eax, ebx
add eax, ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x401ade
mov ecx, dword [ebp + 0x6c]
inc eax
add ebx, 0x38
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x401aad
jmp 0x401ae2
test eax, eax
jge 0x401aed
push 1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::LoadStringA
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x404618
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
push edx
push 0x20
push 0
push 1
mov ecx, dword [esp + 0x6c]
push 0
push 0
and edi, 0xff
push 0
and esi, 0xff
push edi
push esi
push eax
push 0
push 0
push 0
push ecx
mov byte [esp + 0xdc], 0xb
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x30]
mov edx, dword [ebp + 0x9c]
push 1
neg eax
sbb eax, eax
and eax, edi
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x3c]
lea edi, [ebp + 0x7c]
push eax
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 1
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebp + 0xbc]
call fcn.00402c88
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ebp, 0x3c
mov dword [esp + 0x60], ebp
call ebx
mov si, ax
and esi, 0x3ff
call ebx
shr ax, 0xa
cmp si, 4
jne 0x401bcc
dec ax
neg ax
sbb al, al
and al, 0xfe
add al, 0x88
mov byte [esp + 0x78], al
jmp 0x401bd1
mov byte [esp + 0x78], 1
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x60]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x68]
and edx, 0xbfffffff
push eax
mov ecx, edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0x48000000
mov dword [esp + 0x6c], edx
call sub.MFC42.DLL_CRichEditCtrl::SetDefaultCharFormat
mov dword [esp + 0x30], 0x404604
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 0xc
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0x4045f0
mov byte [esp + 0xa4], 8
call fcn.00402b86
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 7
call fcn.00402b86
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 6
call fcn.00402b86
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 5
call fcn.00402b86
lea ecx, [esp + 0x48]
mov byte [esp + 0xa4], 3
call fcn.00402b86
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 2
call fcn.00402b86
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 1
call fcn.00402b86
lea ecx, [esp + 0x50]
mov byte [esp + 0xa4], 0
call fcn.00402b86
lea ecx, [esp + 0x28]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00402b86
mov eax, 1
jmp 0x401ce3
mov edi, dword [edi]
mov ecx, ebp
push edi
call fcn.00401710
lea ecx, [esp + 0x28]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00402b86
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret