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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554a40
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5a0800]
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.00415670
push eax
lea ecx, [ebp - 0x94]
call fcn.00411b10
mov dword [ebp - 4], 0
call fcn.00415680
mov ecx, eax
call fcn.00412970
test al, al
je 0x462cac
push esi
lea ecx, [ebp - 0x94]
call fcn.00412090
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00412720
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x462c3b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x462bf8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x462c3b
push esi
mov dword [ebp - 0x2c8], 0
call fcn.004e7709
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 0x462d78
push edi
call fcn.004e7712
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00411c90
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x462c8c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x462d93
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.004e6d11
mov esp, ebp
pop ebp
ret 4
call fcn.00415680
push eax
lea ecx, [ebp - 0x94]
call fcn.00412000
call fcn.00415ba0
test al, al
je 0x462ccd
call fcn.00415690
jmp 0x462ce5
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.00412720
push eax
call fcn.0042fff0
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x462c3b
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push esi
push ebx
call fcn.0042f5c0
add esp, 0x14
test eax, eax
jne 0x462c3b
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x462c3b
push esi
call fcn.004e7709
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push ebx
call fcn.00430440
add esp, 0x18
test eax, eax
je 0x462d66
cmp eax, 0x600
je 0x462d66
push edi
call fcn.004e7712
add esp, 4
call fcn.00415ba0
test al, al
jne 0x462c3b
push ebx
call fcn.0042f350
jmp 0x462c38
call fcn.00415ba0
test al, al
jne 0x462d78
push ebx
call fcn.0042f350
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00411c90
test edi, edi
jne 0x462ddf
jmp 0x462c4d
push esi
mov dword [ebp - 0x2cc], 0
call fcn.004e7709
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 0x462dd7
push edi
call fcn.004e7712
add esp, 4
jmp 0x462c8c
test edi, edi
je 0x462c8c
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00462e00
push edi
mov esi, eax
call fcn.004e7712
add esp, 4
mov eax, esi
jmp 0x462c8e