Function at 0x61dcc0
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.00408f40
xor eax, eax
push ebp
push 0x61df20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00408e5c
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00409c50
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x61def0
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x61dd4b
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x61def0
xor edi, edi
mov eax, dword [ebp - 0x24]
call fcn.0061dbf4
mov ebx, eax
cmp ebx, 1
je 0x61dd61
cmp ebx, 2
jne 0x61dd68
mov edi, 2
jmp 0x61dd72
cmp ebx, 3
jne 0x61dd72
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 0x61dee7
cmp dword [ebp - 0x28], 0
jle 0x61dee7
cmp ebx, 1
je 0x61dda4
cmp ebx, 2
jne 0x61de07
mov edx, dword [ebp - 0x28]
sar edx, 1
jns 0x61ddae
adc edx, 0
lea eax, [ebp - 8]
call fcn.00409de4
mov eax, dword [ebp - 8]
test eax, eax
je 0x61ddc2
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.00409de4
cmp ebx, 2
jne 0x61ddf7
mov eax, dword [ebp - 8]
call fcn.00409c50
call fcn.0061b2c4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.0040923c
jmp 0x61dee7
cmp ebx, 3
jne 0x61de8b
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00409968
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.00409968
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00409320
xor eax, eax
push ebp
push 0x61de77
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040cd94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61de7e
lea eax, [ebp - 0x10]
call fcn.00408e80
ret
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00409968
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.00409968
cmp dword [ebp - 0x18], 0
je 0x61dedc
cmp dword [ebp - 0x18], 0x4b0
je 0x61dedc
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0061ec04
jmp 0x61dee7
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00409d28
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 0x61df27
lea eax, [ebp - 0x14]
call fcn.00408e5c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00408eec
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408ebc
ret