Function at 0x407742
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x416180]
mov ecx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], ecx
call fcn.0040642a
push 0x4119bc
call fcn.0040e18e
add eax, 8
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004023d4
mov eax, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 0x24], 8
jae 0x407783
lea eax, [ebp - 0x38]
push ebx
push 0x4119b8
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
jne 0x4077a0
xor bl, bl
jmp 0x4078a7
push esi
push edi
lea ecx, [ebp - 0x20]
xor edi, edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov esi, 0x10000
push esi
call fcn.0040f48e
push dword [ebp - 0x4c]
mov ebx, eax
push esi
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
mov dword [ebp - 0x44], eax
xor eax, eax
add esp, 0x14
cmp dword [ebp - 0x44], eax
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x48], eax
jbe 0x407888
mov esi, 0x4119b4
mov al, byte [eax + ebx]
cmp al, 0x2c
jne 0x407819
cmp edi, 5
ja 0x407888
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x407800
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR71.dll__atoi64]
pop ecx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp + edi*4 - 0x64], eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
inc edi
jmp 0x407878
cmp al, 0xd
je 0x407835
cmp al, 0xa
je 0x407835
cmp al, 0x30
jl 0x407878
cmp al, 0x39
jg 0x407878
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
jmp 0x407878
cmp edi, 5
jne 0x40786c
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x50]
and dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00407448
mov byte [ebp - 0x3d], 1
push esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
xor edi, edi
mov eax, dword [ebp - 0x48]
inc eax
cmp eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
jb 0x4077e4
push dword [ebp - 0x4c]
call dword [sym.imp.MSVCR71.dll_fclose]
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov bl, byte [ebp - 0x3d]
pop edi
pop esi
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040f50d
leave
ret 4