Function at 0x42b3e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318ec
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x44d1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x20], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x42b46f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x50]
jmp 0x42b62a
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00414c94
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x42b4d3
jmp 0x42b501
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x58]
jmp 0x42b62a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
add eax, 9
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 4
jne 0x42b5e8
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x40], 0
jmp 0x42b535
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax + 4]
jae 0x42b5e8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
add eax, 6
mov dword [ebp - 0x18], eax
movzx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x42b59d
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
je 0x42b59b
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
cmp dword [ebp + 0x28], ecx
jne 0x42b59b
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 2]
sub ecx, dword [eax + 2]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 2]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
mov dword [ebp - 0x30], 0
jmp 0x42b5e8
jmp 0x42b5e3
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
je 0x42b5e3
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 2]
sub ecx, dword [eax + 2]
cmp ecx, 0x40
jne 0x42b5e3
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 2]
sub ecx, dword [eax + 2]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 2]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
mov dword [ebp - 0x30], 0
jmp 0x42b5e8
jmp 0x42b52c
cmp dword [ebp - 0x1c], 0
je 0x42b607
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x28