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

Disassembly:
push 0xffffffffffffffff
push 0x466a61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0xb]
push 0
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x4675b8
mov dword [esp + 0x38], 0x4675b0
call fcn.00401779
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
mov dword [esp + 0xa8], 0
call fcn.00452790
test eax, eax
mov byte [esp + 0xa4], 1
je 0x459bdd
lea ecx, [eax + 4]
jmp 0x459bdf
xor ecx, ecx
push ebx
push esi
push edi
push 0x47e220
call fcn.00431ff7
test eax, eax
je 0x459c35
lea eax, [esp + 0x74]
lea ecx, [esp + 0x18]
push eax
call fcn.00452790
test eax, eax
mov byte [esp + 0xb0], 2
je 0x459c0f
lea ecx, [eax + 4]
jmp 0x459c11
xor ecx, ecx
push 0x47e390
call fcn.00431ff7
test eax, eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 1
sete bl
call fcn.0040125c
test bl, bl
je 0x459c37
mov bl, 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.0040125c
test bl, bl
je 0x459ca1
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xbc]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xbc]
push edx
push eax
push ecx
call fcn.00459ff0
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0xb0], 0xffffffff
call fcn.0040125c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
add esp, 0xa8
ret
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x459cae
mov eax, 0x467588
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
or ebx, 0xffffffff
mov byte [esp + 0xb0], 3
cmp eax, ebx
je 0x459f20
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x459f20
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x459f20
push esi
call fcn.0043c844
mov edi, eax
add esp, 4
test edi, edi
je 0x459f20
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459e87
mov eax, dword [esp + 0x10]
test eax, eax
je 0x459e87
lea edx, [esp + 0x40]
lea ecx, [esp + 0x18]
push edx
call fcn.00452790
test eax, eax
mov byte [esp + 0xb0], 4
je 0x459d5a
lea esi, [eax + 4]
jmp 0x459d5c
xor esi, esi
push 0x47dfe8
call fcn.0043c64f
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esi + 8]
push 0x47dfe8
push eax
push 0
call fcn.00402dad
test eax, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 3
sete bl
call fcn.0040125c
test bl, bl
je 0x459db9
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push edi
push ecx
push edx
call fcn.00459f60
add esp, 0xc
test eax, eax
je 0x459e87
jmp 0x459e31
lea eax, [esp + 0x40]
lea ecx, [esp + 0x18]
push eax
call fcn.00452790
test eax, eax
mov byte [esp + 0xb0], 5
je 0x459dd8
lea esi, [eax + 4]
jmp 0x459dda
xor esi, esi
push 0x47e214
call fcn.0043c64f
mov ecx, dword [esi + 8]
add esp, 4
push eax
push 0x47e214
push ecx
push 0
mov ecx, esi
call fcn.00402dad
test eax, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 3
sete bl
call fcn.0040125c
test bl, bl
je 0x459e87
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
push edi
push edx
push eax
call fcn.00459f90
add esp, 0xc
test eax, eax
je 0x459e87
push edi
call fcn.0043ba49
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
je 0x459e56
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x459e56
push ecx
call eax
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0040125c
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
add esp, 0xa8
ret
push edi
call fcn.0043ba49
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
je 0x459eac
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x459eac
push ecx
call eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
neg eax
sbb eax, eax
mov dword [esp + 0xb0], 6
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x18]
neg esi
sbb esi, esi
lea eax, [esp + 0x2c]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0043ba49
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x1c]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.0040b46b
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x459f41
lea ecx, [esp + 0xc]
mov byte [esp + 0xb0], 0
call fcn.00419941
lea ecx, [esp + 0x18]
mov dword [esp + 0xb0], ebx
call fcn.0040125c
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret