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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d8], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2d4], esi
call fcn.004199d0
push eax
lea ecx, [ebp - 0x94]
call fcn.00415e60
mov dword [ebp - 4], 0
call fcn.004199e0
mov ecx, eax
call fcn.00416cc0
test al, al
je 0x466fdc
push esi
lea ecx, [ebp - 0x94]
call fcn.004163e0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00416a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x466f6b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x466f28
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x466f6b
push esi
mov dword [ebp - 0x2c8], 0
call fcn.004ef940
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x4670a8
push edi
call fcn.004efc69
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415fe0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x466fbc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4670c3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ef253
mov esp, ebp
pop ebp
ret 4
call fcn.004199e0
push eax
lea ecx, [ebp - 0x94]
call fcn.00416350
call fcn.00419f00
test al, al
je 0x466ffd
call fcn.004199f0
jmp 0x467015
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.00416a70
push eax
call fcn.00434300
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x466f6b
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push esi
push ebx
call fcn.004338c0
add esp, 0x14
test eax, eax
jne 0x466f6b
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x466f6b
push esi
call fcn.004ef940
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push ebx
call fcn.00434750
add esp, 0x18
test eax, eax
je 0x467096
cmp eax, 0x600
je 0x467096
push edi
call fcn.004efc69
add esp, 4
call fcn.00419f00
test al, al
jne 0x466f6b
push ebx
call fcn.00433650
jmp 0x466f68
call fcn.00419f00
test al, al
jne 0x4670a8
push ebx
call fcn.00433650
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415fe0
test edi, edi
jne 0x46710f
jmp 0x466f7d
push esi
mov dword [ebp - 0x2cc], 0
call fcn.004ef940
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2cc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x467107
push edi
call fcn.004efc69
add esp, 4
jmp 0x466fbc
test edi, edi
je 0x466fbc
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00467130
push edi
mov esi, eax
call fcn.004efc69
add esp, 4
mov eax, esi
jmp 0x466fbe