Function at 0x424713
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42d244
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x3c
push ebx
push esi
push edi
mov esi, ecx
push 5
mov byte [ebp - 0xd], 1
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, 0x104
push edi
mov dword [ebp - 0x20], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x28], eax
push 0xf
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x1c], eax
push edi
call sub.MFC42.DLL_operatornew
mov ebx, dword [sym.imp.MSVCRT.dll__ftime]
mov dword [ebp - 0x24], eax
pop ecx
lea eax, [ebp - 0x3c]
push eax
call ebx
movzx eax, word [ebp - 0x38]
mov dword [ebp - 0x14], eax
pop ecx
fild dword [ebp - 0x14]
push 4
push dword [ebp - 0x20]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x431958]
fild dword [ebp - 0x3c]
push dword [esi + 0x17c]
fstp qword [ebp - 0x18]
fadd qword [ebp - 0x18]
fstp qword [esi + 0x160]
call dword [sym.imp.MSVCRT.dll__read]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
test eax, eax
mov dword [esi + 0x178], eax
jg 0x4247cc
push 0x440384
push 0x440394
push str._s:_ERROR_READING__s
push dword [esi + 0x18c]
call edi
add esp, 0x10
and byte [ebp - 0xd], 0
fld qword [esi + 0x160]
lea eax, [ebp - 0x3c]
fstp qword [ebp - 0x30]
push eax
call ebx
movzx eax, word [ebp - 0x38]
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0
fild dword [ebp - 0x14]
pop ecx
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x431958]
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x18]
fadd qword [ebp - 0x18]
fsub qword [ebp - 0x30]
fadd qword [esi + 0xe0]
fstp qword [esi + 0xe0]
je 0x424938
mov eax, dword [ebp - 0x20]
and byte [eax + 4], 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 0x424848
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [esi + 0x170], eax
jmp 0x424862
push 0x4403a0
push 0x4403b0
push str._s_FILE_CONVERSION_ERROR__FIELD___s
push dword [esi + 0x18c]
call edi
add esp, 0x10
cmp byte [ebp - 0xd], 0
je 0x424938
lea eax, [ebp - 0x3c]
push eax
call ebx
movzx eax, word [ebp - 0x38]
mov dword [ebp - 0x14], eax
pop ecx
fild dword [ebp - 0x14]
push dword [esi + 0x170]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x431958]
fild dword [ebp - 0x3c]
push dword [esi + 0xc0]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
push dword [esi + 0x17c]
fstp qword [esi + 0x160]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
mov dword [esi + 0x178], eax
test eax, eax
jle 0x42490d
fld qword [esi + 0x160]
lea eax, [ebp - 0x48]
fstp qword [ebp - 0x38]
push eax
call ebx
movzx eax, word [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc0]
fild dword [ebp - 0x14]
pop ecx
mov ecx, dword [esi + 0x170]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x431958]
fild dword [ebp - 0x48]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fsub qword [ebp - 0x38]
fadd qword [esi + 0xe0]
fstp qword [esi + 0xe0]
and byte [eax + ecx], 0
jmp 0x42492b
push 0x4403bc
push 0x4403cc
push str._s:_ERROR_READING__s
push dword [esi + 0x18c]
call edi
add esp, 0x10
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x424938
mov ecx, esi
call fcn.00423a9a
inc dword [esi + 0xbc]
push dword [esi + 0xbc]
lea eax, [esi + 0xbc]
mov eax, dword [esi + 0x194]
add eax, 6
push eax
push 0x4403d8
push dword [ebp - 0x1c]
call edi
mov ecx, dword [esi + 0x19c]
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.0040ad5d
test al, al
je 0x4249b9
push 0x12c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x424993
mov ecx, eax
call fcn.00405203
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4249b9
push dword [ebp - 0x24]
mov ecx, ebx
push 0x42
call fcn.00405302
test ebx, ebx
je 0x4249b9
mov ecx, ebx
call fcn.004052b5
push ebx
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
push dword [ebp - 0x24]
push 0x4403e4
push ebx
call edi
add esp, 0x10
push 0
push ebx
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
pop ecx
test eax, eax
push 0x80
jne 0x4249e8
push 0x8202
jmp 0x4249ed
push 0x8102
push ebx
call dword [sym.imp.MSVCRT.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x424a46
push dword [esi + 0x170]
push dword [esi + 0x198]
push eax
call dword [sym.imp.MSVCRT.dll__write]
add esp, 0xc
cmp eax, 0xffffffff
je 0x424a20
mov byte [ebp - 0xd], 1
jmp 0x424a3a
push ebx
push 0x4403ec
push str._s:_ERROR_WRITING__s
push dword [esi + 0x18c]
call edi
add esp, 0x10
and byte [ebp - 0xd], 0
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
jmp 0x424a60
push ebx
push 0x4403f8
push 0x4318c0
push dword [esi + 0x18c]
call edi
add esp, 0x10
and byte [ebp - 0xd], 0
push dword [ebp - 0x1c]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x24]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
pop ecx
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x198]
add esi, 0x198
test eax, eax
pop ecx
je 0x424a9c
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi], 0
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret