Function at 0x407314
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x427c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
call fcn.00406af7
push 0x41d9dc
call fcn.0041066d
add eax, 8
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
mov eax, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 0x24], 8
jae 0x407356
lea eax, [ebp - 0x38]
push ebx
push 0x41d9d8
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x407388
xor bl, bl
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00419ad8
leave
ret 4
push esi
push edi
lea ecx, [ebp - 0x20]
xor edi, edi
call dword [sym.imp.MSVCP90.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.004198ae
push dword [ebp - 0x4c]
mov ebx, eax
push esi
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
mov dword [ebp - 0x44], eax
xor eax, eax
add esp, 0x14
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x44], eax
jbe 0x407470
mov esi, 0x41d9d4
mov al, byte [eax + ebx]
cmp al, 0x2c
jne 0x407401
cmp edi, 5
ja 0x407470
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x4073e8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR90.dll__atoi64]
pop ecx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp + edi*4 - 0x64], eax
call dword [sym.imp.MSVCP90.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 0x407460
cmp al, 0xd
je 0x40741d
cmp al, 0xa
je 0x40741d
cmp al, 0x30
jl 0x407460
cmp al, 0x39
jg 0x407460
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.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 0x407460
cmp edi, 5
jne 0x407454
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.00406e2b
mov byte [ebp - 0x3d], 1
push esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.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
mov dword [ebp - 0x48], eax
cmp eax, dword [ebp - 0x44]
jb 0x4073cc
push dword [ebp - 0x4c]
call dword [sym.imp.MSVCR90.dll_fclose]
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.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
jmp 0x40736e