Function at 0x59d800
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x6ee2dc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x59d83f
push str.Invalid_file_name
push 0
call fcn.0059d130
add esp, 8
mov eax, 0x8876086c
jmp 0x59da65
cmp dword [ebp + 0xc], 0
je 0x59d8de
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 2
je 0x59d8de
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.0062fffc
add esp, 4
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x59d8b2
mov eax, 0x8007000e
jmp 0x59da65
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x59d90a
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ecx, dword [ebp - 0xbc]
mov dword [ecx], eax
jmp 0x59d92e
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [ebp - 0xbc]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0062fced
add esp, 4
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx], 0xffffffff
jne 0x59d956
jmp 0x59d9fc
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
push eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0xbc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 4], 0xffffffff
jne 0x59d986
jmp 0x59d9fc
push 0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [ebp - 0xbc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0xc], 0xffffffff
jne 0x59d9ae
jmp 0x59d9fc
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0xc], 0
je 0x59d9eb
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0xbc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 8], 0
jne 0x59d9e9
jmp 0x59d9fc
jmp 0x59d9f8
mov eax, dword [ebp - 0xbc]
mov dword [eax + 8], 0
xor eax, eax
jmp 0x59da65
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x1100
call dword [sym.imp.kernel32.dll_FormatMessageA]
cmp dword [ebp + 0xc], 0
je 0x59da3f
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._S:__s
push 0
call fcn.0059d130
add esp, 0x10
jmp 0x59da56
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s:__s
push 0
call fcn.0059d130
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, 0x88760b59
mov ecx, dword [ebp - 0x14]
call fcn.0062fcdf
mov esp, ebp
pop ebp
ret 8