Function at 0x422f21
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42d19c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2fc
push ebx
push esi
mov esi, ecx
push edi
push 6
mov byte [ebp - 0xd], 1
and dword [esi + 0xbc], 0
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, 0x104
push edi
mov dword [ebp - 0x24], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x44], eax
push 0xf
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x20], eax
push 0xf
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x28], eax
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x308]
call fcn.00401153
mov edi, dword [sym.imp.MSVCRT.dll__ftime]
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
call edi
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x14], eax
pop ecx
fild dword [ebp - 0x14]
push 5
push dword [ebp - 0x24]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x431958]
fild dword [ebp - 0x34]
push dword [esi + 0x17c]
fstp qword [ebp - 0x1c]
fadd qword [ebp - 0x1c]
fstp qword [esi + 0x160]
call dword [sym.imp.MSVCRT.dll__read]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
test eax, eax
mov dword [esi + 0x178], eax
jg 0x422ffe
push 0x43ffa8
push 0x43ffb8
push str._s:_ERROR_READING__s
push dword [esi + 0x18c]
call ebx
add esp, 0x10
and byte [ebp - 0xd], 0
fld qword [esi + 0x160]
lea eax, [ebp - 0x40]
fstp qword [ebp - 0x30]
push eax
call edi
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0
fild dword [ebp - 0x14]
pop ecx
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x431958]
fild dword [ebp - 0x40]
fstp qword [ebp - 0x1c]
fadd qword [ebp - 0x1c]
fsub qword [ebp - 0x30]
fadd qword [esi + 0xe0]
fstp qword [esi + 0xe0]
je 0x423165
mov eax, dword [ebp - 0x24]
and byte [eax + 5], 0
push dword [esi + 0x178]
mov ecx, dword [esi + 0x1a0]
push eax
push 1
call fcn.0040c4ee
test al, al
mov byte [ebp - 0xd], al
je 0x423086
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [esi + 0x170], eax
push eax
lea ecx, [ebp - 0x308]
call fcn.0040122f
jmp 0x4230a0
push 0x43ffc4
push 0x43ffd4
push str._s_FILE_CONVERSION_ERROR__FIELD___s
push dword [esi + 0x18c]
call ebx
add esp, 0x10
cmp byte [ebp - 0xd], 0
je 0x423165
lea eax, [ebp - 0x40]
push eax
call edi
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x14], eax
pop ecx
fild dword [ebp - 0x14]
push dword [esi + 0x170]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x431958]
fild dword [ebp - 0x40]
push dword [esi + 0xc0]
fstp qword [ebp - 0x1c]
push dword [esi + 0x17c]
fadd qword [ebp - 0x1c]
fstp qword [esi + 0x160]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
mov dword [esi + 0x178], eax
test eax, eax
jle 0x42314b
fld qword [esi + 0x160]
lea eax, [ebp - 0x40]
fstp qword [ebp - 0x30]
push eax
call edi
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc0]
fild dword [ebp - 0x14]
pop ecx
mov ecx, dword [esi + 0x170]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x431958]
fild dword [ebp - 0x40]
fstp qword [ebp - 0x1c]
fadd qword [ebp - 0x1c]
fsub qword [ebp - 0x30]
fadd qword [esi + 0xe0]
fstp qword [esi + 0xe0]
and byte [eax + ecx], 0
jmp 0x423165
push 0x43ffe0
push 0x43fff0
push str._s:_ERROR_READING__s
push dword [esi + 0x18c]
call ebx
add esp, 0x10
mov eax, dword [esi + 0x194]
xor edi, edi
mov dword [ebp - 0x14], edi
mov cl, byte [eax + 5]
cmp cl, 0x52
jne 0x423186
add eax, 6
push eax
push str.6n4r_s.cal
push dword [ebp - 0x20]
jmp 0x423197
cmp cl, 0x53
jne 0x4231a1
add eax, 6
push eax
push str.6n4s_s.cal
push dword [ebp - 0x20]
call ebx
add esp, 0xc
mov dword [ebp - 0x2c], edi
jmp 0x4231bb
add eax, 6
push eax
push 0x440014
push dword [ebp - 0x20]
call ebx
add esp, 0xc
push 1
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
cmp word [ebp - 0x14], di
je 0x423218
lea eax, [ebp - 0x18]
mov ecx, 0x441ef8
push eax
call fcn.00419ca2
push 0x40
push 0x440020
push dword [eax]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCRT.dll__fsopen]
mov edi, eax
add esp, 0xc
xor ebx, ebx
lea ecx, [ebp - 0x18]
test edi, edi
setne bl
and byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x423218
push dword [ebp - 0x20]
push 0x440024
push edi
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov edi, dword [ebp - 0x20]
push edi
push dword [ebp - 0x28]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov ecx, dword [esi + 0x19c]
push edi
call fcn.0040ad5d
push edi
lea ecx, [ebp - 0x308]
call fcn.00401246
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x308]
push dword [esi + 0xc0]
call fcn.00401341
cmp word [ebp - 0x14], 0
mov bl, al
je 0x42326b
push dword [ebp - 0x28]
lea ecx, [ebp - 0x308]
call fcn.004014bf
mov bl, al
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x28]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x48]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x24]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x44]
call sub.MFC42.DLL_operatordelete
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x308]
call fcn.0040119b
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret