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

Disassembly:
push 0x3d0
mov eax, 0x4f623e
call fcn.00492778
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov esi, ebx
mov edi, ebx
call fcn.004480df
push eax
lea ecx, [ebp - 0x94]
call fcn.00445524
mov dword [ebp - 4], ebx
call fcn.004480eb
mov ecx, eax
call fcn.00445d43
test al, al
je 0x46321f
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x94]
call fcn.004457b3
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.00402b90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x4631c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044564b
jmp 0x4633b0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4631b5
push edi
mov dword [ebp - 0x3d8], ebx
call fcn.00491bde
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], edi
je 0x46339d
push esi
call fcn.00491be7
pop ecx
mov esi, ebx
jmp 0x4631b5
call fcn.004480eb
push eax
lea ecx, [ebp - 0x94]
call fcn.00445796
call fcn.00448409
test al, al
je 0x463246
call fcn.004480f1
mov dword [ebp - 0x3d0], eax
jmp 0x4632b2
call fcn.004480f7
push eax
lea ecx, [ebp - 0x19c]
call fcn.00445524
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00402b90
push eax
call fcn.0046e427
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x3d8], eax
call fcn.00402b90
push eax
call fcn.004581ae
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d8]
pop ecx
pop ecx
test eax, eax
je 0x46329e
push eax
call fcn.00491be7
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0044564b
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x4631b5
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call fcn.00445549
push 0x500e18
push 0x51fa40
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00445f10
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00402b90
push eax
push dword [ebp - 0x3d0]
call fcn.00457b85
add esp, 0x14
test eax, eax
je 0x46332a
lea ecx, [ebp - 0x118]
call fcn.0044564b
jmp 0x4631b5
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x46331a
push edi
call fcn.00491bde
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.004585e8
add esp, 0x14
test eax, eax
je 0x46337d
cmp eax, 0x600
je 0x46337d
push esi
call fcn.00491be7
pop ecx
mov esi, ebx
call fcn.00448409
test al, al
jne 0x46331a
push dword [ebp - 0x3d0]
call fcn.00457964
pop ecx
jmp 0x46331a
call fcn.00448409
test al, al
jne 0x463392
push dword [ebp - 0x3d0]
call fcn.00457964
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0044564b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044564b
test esi, esi
jne 0x46342b
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x463427
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x463427
push edi
mov dword [ebp - 0x3d0], ebx
call fcn.00491bde
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x463427
push esi
call fcn.00491be7
pop ecx
mov esi, ebx
test esi, esi
je 0x46343f
push edi
push esi
call fcn.004630c6
push 1
push esi
mov ebx, eax
call fcn.00491bd0
add esp, 0x10
mov eax, ebx
call fcn.00492733
ret