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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d41b3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x28]
call fcn.0044ee30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.0059bee0
mov byte [ebp - 4], 1
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x40]
call fcn.004465b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
je 0x59be85
push 0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x59bd6f
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0044edb0
mov ecx, dword [ebp - 0x78]
or ecx, 1
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00446610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00446610
mov eax, dword [ebp + 8]
jmp 0x59beb8
mov edx, dword [ebp - 0x80]
add edx, 1
push edx
call fcn.00495ecb
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x59bdd5
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0044edb0
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00446610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00446610
mov eax, dword [ebp + 8]
jmp 0x59beb8
mov ecx, dword [ebp - 0x7c]
add ecx, dword [ebp - 0x80]
mov byte [ecx], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x81], 0
mov byte [ebp - 0x82], 0
push 0
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x88], 0
jbe 0x59be63
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0045d880
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.004db359
add esp, 8
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044ecc0
lea ecx, [ebp - 0x70]
call fcn.00446610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00446710
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.00495c1d
add esp, 4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0044edb0
mov edx, dword [ebp - 0x78]
or edx, 1
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00446610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00446610
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 4