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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408f58
xor eax, eax
push ebp
push 0x632600
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00408e74
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00409cdc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x6325d0
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x63242b
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x6325d0
xor edi, edi
mov eax, dword [ebp - 0x24]
call fcn.006322d4
mov ebx, eax
cmp ebx, 1
je 0x632441
cmp ebx, 2
jne 0x632448
mov edi, 2
jmp 0x632452
cmp ebx, 3
jne 0x632452
mov edi, 3
mov eax, esi
sub eax, edi
mov dword [ebp - 0x28], eax
push 0
push 0
push edi
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetFilePointer
cmp esi, 0xffffffff
je 0x6325c7
cmp dword [ebp - 0x28], 0
jle 0x6325c7
cmp ebx, 1
je 0x632484
cmp ebx, 2
jne 0x6324e7
mov edx, dword [ebp - 0x28]
sar edx, 1
jns 0x63248e
adc edx, 0
lea eax, [ebp - 8]
call fcn.00409e70
mov eax, dword [ebp - 8]
test eax, eax
je 0x6324a2
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x20]
push edx
add eax, eax
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp - 0x20]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00409e70
cmp ebx, 2
jne 0x6324d7
mov eax, dword [ebp - 8]
call fcn.00409cdc
call fcn.0062fd3c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00409254
jmp 0x6325c7
cmp ebx, 3
jne 0x63256b
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00409980
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00409980
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00409338
xor eax, eax
push ebp
push 0x632557
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040cf24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63255e
lea eax, [ebp - 0x10]
call fcn.00408e98
ret
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00409980
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00409980
cmp dword [ebp - 0x18], 0
je 0x6325bc
cmp dword [ebp - 0x18], 0x4b0
je 0x6325bc
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00633144
jmp 0x6325c7
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00409db4
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x632607
lea eax, [ebp - 0x14]
call fcn.00408e74
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00408f04
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408ed4
ret