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

Disassembly:
sub esp, 0x838
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x834], eax
push esi
push edi
mov edi, dword [esp + 0x844]
lea eax, [esp + 0x10]
push eax
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push 0x800
push ecx
push edx
call fcn.00803a40
mov esi, eax
cmp esi, 0x100
jb 0x5c1cba
push ebx
push ebp
lea eax, [esp + 0x44]
push eax
push 1
push edi
mov ebx, 0x800
mov eax, 0x100
call fcn.005c15e0
add esp, 0xc
mov ebp, 2
test al, al
je 0x5c19e2
cmp word [esp + 0x44], bp
je 0x5c1a07
lea ecx, [esp + 0x44]
push ecx
push 1
push edi
mov eax, esi
call fcn.005c15e0
add esp, 0xc
test al, al
je 0x5c1cb6
cmp word [esp + 0x44], bp
jne 0x5c1cb6
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
dec ecx
shr ecx, 0xb
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x5c]
dec ecx
mov ebp, eax
mov eax, dword [esp + 0x60]
shr ecx, 0xb
add ecx, eax
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov dword [esp + 0x28], 1
jmp 0x5c1a54
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
shl ebp, 0xb
jmp 0x5c1a60
push ebx
lea edx, [esp + 0x30]
push edx
xor esi, esi
mov ecx, esi
mov eax, ebp
push ecx
push eax
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp ebp, dword [esp + 0x2c]
jne 0x5c1aac
cmp esi, dword [esp + 0x30]
jne 0x5c1aac
push ebx
lea eax, [esp + 0x38]
push eax
push 0x800
lea ecx, [esp + 0x50]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c1aac
mov al, 1
jmp 0x5c1aae
xor al, al
inc dword [esp + 0x14]
add ebp, 0x800
cmp al, bl
je 0x5c1b35
mov ax, word [esp + 0x44]
cmp ax, 5
jne 0x5c1af2
cmp byte [esp + 0x13], bl
jne 0x5c1b3c
mov dx, word [esp + 0x5a]
cmp dx, word [esp + 0x850]
sete cl
mov byte [esp + 0x13], cl
cmp cl, bl
je 0x5c1b3c
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x18], ecx
jmp 0x5c1b3c
cmp ax, 6
jne 0x5c1b3c
cmp byte [esp + 0x12], bl
jne 0x5c1b3c
cmp dword [esp + 0x118], 0x800
jne 0x5c1b2f
mov dx, word [esp + 0x850]
cmp dx, word [esp + 0x144]
jne 0x5c1b2f
mov ecx, dword [esp + 0x140]
mov byte [esp + 0x12], 1
mov dword [esp + 0x40], ecx
jmp 0x5c1b3c
mov byte [esp + 0x12], bl
jmp 0x5c1b3c
xor eax, eax
mov word [esp + 0x44], ax
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x24]
ja 0x5c1b60
cmp ax, 8
je 0x5c1b60
cmp byte [esp + 0x13], bl
je 0x5c1a60
cmp byte [esp + 0x12], bl
je 0x5c1a60
mov cl, byte [esp + 0x13]
cmp cl, bl
je 0x5c1b6e
cmp byte [esp + 0x12], bl
jne 0x5c1b7e
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
mov edx, eax
dec eax
mov dword [esp + 0x28], eax
test edx, edx
je 0x5c1b9f
cmp cl, bl
je 0x5c1a50
cmp byte [esp + 0x12], bl
je 0x5c1a50
cmp byte [esp + 0x13], bl
je 0x5c1cb6
cmp byte [esp + 0x12], bl
je 0x5c1cb6
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push 1
lea eax, [eax + esi]
push edi
mov ebx, 0x800
call fcn.005c15e0
add esp, 0xc
test al, al
je 0x5c1cb6
mov edx, 0x100
cmp word [esp + 0x44], dx
jne 0x5c1cb6
mov ax, word [esp + 0x850]
cmp ax, word [esp + 0x1dc]
jne 0x5c1cb6
mov eax, dword [esp + 0x1d8]
lea ecx, [esp + 0x44]
push ecx
push 1
lea eax, [eax + esi]
push edi
call fcn.005c15e0
add esp, 0xc
test al, al
je 0x5c1cb6
mov eax, 0x105
cmp word [esp + 0x44], ax
jne 0x5c1cb6
cmp byte [esp + 0x5f], 4
jne 0x5c1cb6
push 0x11e
call fcn.00802fbf
mov ebp, eax
mov dword [ebp + 0x10a], esi
lea esi, [ebp + 0x112]
lea edx, [ebp + 0x10e]
mov edi, ebx
lea eax, [esp + 0x48]
call fcn.005c1650
mov ecx, dword [esp + 0x80]
xor ebx, ebx
push 0x42940c
push ebp
mov dword [ebp + 0x11a], ecx
mov dword [ebp + 0x102], ebx
mov dword [ebp + 0x106], ebx
mov dword [ebp + 0x116], edi
call fcn.005c1940
add esp, 0xc
mov word [ebp + 0x100], 1
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.0080262b
add esp, 0x838
ret
xor eax, eax
jmp 0x5c1c9d
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0080262b
add esp, 0x838
ret