Function at 0x632934
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.00407578
xor eax, eax
push ebp
push 0x632b94
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00407494
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x632b64
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x6329bf
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x632b64
xor edi, edi
mov eax, dword [ebp - 0x24]
call fcn.00632868
mov ebx, eax
cmp ebx, 1
je 0x6329d5
cmp ebx, 2
jne 0x6329dc
mov edi, 2
jmp 0x6329e6
cmp ebx, 3
jne 0x6329e6
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 0x632b5b
cmp dword [ebp - 0x28], 0
jle 0x632b5b
cmp ebx, 1
je 0x632a18
cmp ebx, 2
jne 0x632a7b
mov edx, dword [ebp - 0x28]
sar edx, 1
jns 0x632a22
adc edx, 0
lea eax, [ebp - 8]
call fcn.00408490
mov eax, dword [ebp - 8]
test eax, eax
je 0x632a36
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.00408490
cmp ebx, 2
jne 0x632a6b
mov eax, dword [ebp - 8]
call fcn.004082fc
call fcn.006301dc
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00407874
jmp 0x632b5b
cmp ebx, 3
jne 0x632aff
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00407fa0
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.00407fa0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407958
xor eax, eax
push ebp
push 0x632aeb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040b544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x632af2
lea eax, [ebp - 0x10]
call fcn.004074b8
ret
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00407fa0
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.00407fa0
cmp dword [ebp - 0x18], 0
je 0x632b50
cmp dword [ebp - 0x18], 0x4b0
je 0x632b50
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.006336c0
jmp 0x632b5b
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.004083d4
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 0x632b9b
lea eax, [ebp - 0x14]
call fcn.00407494
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00407524
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret