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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596971
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [ebp + 0xc]
push ebx
push esi
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 esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x514a6d
push str.LoadLogFromFile1
call fcn.005144a0
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push esi
call edi
cmp dword [ebp - 0x10], 4
je 0x514a8f
push str.LoadLogFromFile2
jmp 0x514ab2
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
push esi
call edi
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00514540
add esp, 4
test al, al
je 0x514ad4
push str.LoadLogFromFile3
call fcn.005144a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
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.0053f875
add esp, 4
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
call fcn.0053f875
add esp, 4
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
push ebx
jne 0x514b2f
lea ecx, [ebp - 0x10]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x18]
sub eax, 8
push eax
push edx
push esi
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 edi
call fcn.00514560
add esp, 0x10
jmp 0x514b47
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, 8
push eax
push edi
push esi
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 - 0x24]
push edx
call fcn.00514980
mov eax, dword [ebp - 0x14]
lea ecx, [edi + eax]
mov esi, edi
cmp edi, ecx
jae 0x514c25
lea ebx, [ebx]
mov eax, 7
xor edx, edx
mov dword [ebp - 0xa4], 0xa
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], dx
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], cx
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xb4]
push ecx
push esi
call fcn.00514960
mov ecx, dword [ebp + 8]
add esp, 8
lea edx, [ebp - 0xb4]
push edx
add esi, eax
call fcn.0044ca70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0044a710
mov eax, dword [ebp - 0x14]
lea ecx, [edi + eax]
cmp esi, ecx
jb 0x514b70
push edi
call fcn.00553d26
mov edx, dword [ebp - 0x18]
push edx
call fcn.00553d26
mov eax, dword [ebp - 0x20]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret