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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7abd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x210
mov eax, dword [0x5df148]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00464060
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00454740
movzx ecx, al
test ecx, ecx
je 0x465310
xor edx, edx
mov byte [ebp - 0x61], dl
xor eax, eax
mov byte [ebp - 0x6c], al
xor ecx, ecx
mov byte [ebp - 0x6d], cl
movzx edx, byte [ebp - 0x61]
push edx
movzx eax, byte [ebp - 0x6c]
push eax
movzx ecx, byte [ebp - 0x6d]
push ecx
lea ecx, [ebp - 0x150]
call fcn.00463810
mov ecx, eax
call fcn.00465c60
push eax
call fcn.004188c0
add esp, 4
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409600
mov eax, dword [ebp - 0xa8]
jmp 0x465793
xor edx, edx
mov byte [ebp - 0x6e], dl
xor eax, eax
mov byte [ebp - 0x55], al
xor ecx, ecx
mov byte [ebp - 0x56], cl
push 0xffffffffffffffff
movzx edx, byte [ebp - 0x6e]
push edx
movzx eax, byte [ebp - 0x55]
push eax
movzx ecx, byte [ebp - 0x56]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.004634d0
mov ecx, eax
call fcn.00466190
push eax
lea ecx, [ebp - 0x38]
call fcn.00454870
push eax
push 0
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x38]
call fcn.00462410
mov byte [ebp - 4], 1
xor eax, eax
mov byte [ebp - 0x57], al
xor ecx, ecx
mov byte [ebp - 0x58], cl
xor edx, edx
mov byte [ebp - 0x59], dl
movzx eax, byte [ebp - 0x57]
push eax
movzx ecx, byte [ebp - 0x58]
push ecx
movzx edx, byte [ebp - 0x59]
push edx
lea ecx, [ebp - 0xe0]
call fcn.004631b0
mov ecx, eax
call fcn.00466190
push eax
lea ecx, [ebp - 0x50]
call fcn.0045faf0
mov dword [ebp - 0xb0], eax
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.0045faf0
xor ecx, ecx
mov byte [ebp - 0x5a], cl
xor edx, edx
mov byte [ebp - 0x5b], dl
xor eax, eax
mov byte [ebp - 0x5c], al
movzx ecx, byte [ebp - 0x5a]
push ecx
movzx edx, byte [ebp - 0x5b]
push edx
movzx eax, byte [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x100]
call fcn.00463470
mov ecx, eax
call fcn.00465ad0
push eax
call fcn.004188c0
add esp, 4
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x50]
call fcn.00454430
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x465492
xor ecx, ecx
mov byte [ebp - 0x5d], cl
xor edx, edx
mov byte [ebp - 0x5e], dl
xor eax, eax
mov byte [ebp - 0x5f], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
movzx ecx, byte [ebp - 0x5d]
push ecx
movzx edx, byte [ebp - 0x5e]
push edx
movzx eax, byte [ebp - 0x5f]
push eax
lea ecx, [ebp - 0x180]
call fcn.00463b90
mov ecx, eax
call fcn.00465c60
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004188c0
add esp, 8
mov dword [ebp - 0x80], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409600
mov eax, dword [ebp - 0x80]
jmp 0x465793
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x7c], eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x465553
xor edx, edx
mov byte [ebp - 0x60], dl
xor eax, eax
mov byte [ebp - 0x6f], al
xor ecx, ecx
mov byte [ebp - 0x62], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], eax
movzx edx, byte [ebp - 0x60]
push edx
movzx eax, byte [ebp - 0x6f]
push eax
movzx ecx, byte [ebp - 0x62]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00463110
mov ecx, eax
call fcn.00465ea0
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.004188c0
add esp, 8
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x8c], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409600
mov eax, dword [ebp - 0x8c]
jmp 0x465793
push 0
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x465616
xor eax, eax
mov byte [ebp - 0x63], al
xor ecx, ecx
mov byte [ebp - 0x64], cl
xor edx, edx
mov byte [ebp - 0x65], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
movzx eax, byte [ebp - 0x63]
push eax
movzx ecx, byte [ebp - 0x64]
push ecx
movzx edx, byte [ebp - 0x65]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.00463510
mov ecx, eax
call fcn.00465c60
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.004188c0
add esp, 8
push 0x8000
push 0
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x98], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409600
mov eax, dword [ebp - 0x98]
jmp 0x465793
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
lea ecx, [ebp - 0x20]
call fcn.0040ba90
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00416080
add esp, 0xc
mov byte [ebp - 4], 2
push 0x8000
push 0
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x20]
call fcn.0040cce0
movzx eax, al
test eax, eax
je 0x4656d7
xor ecx, ecx
mov byte [ebp - 0x66], cl
xor edx, edx
mov byte [ebp - 0x67], dl
xor eax, eax
mov byte [ebp - 0x68], al
movzx ecx, byte [ebp - 0x66]
push ecx
movzx edx, byte [ebp - 0x67]
push edx
movzx eax, byte [ebp - 0x68]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.00463b10
mov ecx, eax
call fcn.00465c60
push eax
call fcn.004188c0
add esp, 4
mov dword [ebp - 0x9c], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00409840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409600
mov eax, dword [ebp - 0x9c]
jmp 0x465793
xor ecx, ecx
mov byte [ebp - 0x69], cl
xor edx, edx
mov byte [ebp - 0x6a], dl
xor eax, eax
mov byte [ebp - 0x6b], al
movzx ecx, byte [ebp - 0x69]
push ecx
movzx edx, byte [ebp - 0x6a]
push edx
movzx eax, byte [ebp - 0x6b]
push eax
lea ecx, [ebp - 0x120]
call fcn.00463750
mov ecx, eax
call fcn.00465ad0
push eax
call fcn.004188c0
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.00454430
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x20]
call fcn.00418800
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x20]
call fcn.0040ba40
mov dword [ebp - 0xbc], eax
movzx ecx, byte [ebx + 0x10]
push ecx
mov edx, dword [ebx + 0xc]
push edx
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00464490
add esp, 0x14
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00409840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00409600
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00498f73
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret