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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x668421
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
jne 0x5c0e9d
push str.LoadLogFromFile1
call fcn.005c09f0
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push edi
call esi
cmp dword [ebp - 0x10], 4
je 0x5c0ebf
push str.LoadLogFromFile2
jmp 0x5c0ee2
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
push edi
call esi
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005c0a90
add esp, 4
test al, al
je 0x5c0f04
push str.LoadLogFromFile3
call fcn.005c09f0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call fcn.005fb5ce
add esp, 4
push ebx
mov esi, eax
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
call fcn.005fb5ce
add esp, 4
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
push ebx
jne 0x5c0f62
lea ecx, [ebp - 0x10]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x18]
sub eax, 8
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
call fcn.005c0ab0
add esp, 0x10
jmp 0x5c0f7a
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, 8
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push eax
push edx
lea edx, [ebp - 0x28]
push edx
call fcn.00527ba0
mov eax, dword [ebp - 0x14]
lea ecx, [esi + eax]
cmp esi, ecx
jae 0x5c1073
mov edi, 7
xor edx, edx
mov dword [ebp - 0xa8], 0xa
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], ebx
mov word [ebp - 0xa4], dx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], ebx
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x6c], cx
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], dx
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 4
lea eax, [ebp - 0xb8]
push eax
push esi
call fcn.005c0e10
add esp, 8
add esi, eax
cmp dword [ebp + 0x10], ebx
jne 0x5c103e
mov ecx, dword [ebp - 0x5c]
push 6
push str.SYSTEM
push ecx
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00438610
test eax, eax
je 0x5c104d
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xb8]
push edx
call fcn.004cf420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.004cd430
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
cmp esi, ecx
jb 0x5c0fa0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push esi
call fcn.0060faf6
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060faf6
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop esi
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret