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

Disassembly:
push rbp
push rdi
sub rsp, 0xf8
mov rax, qword [0x1801dc960]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edi, edi
xor eax, eax
mov rbp, rdx
mov dword [rsp + 0x40], edi
mov byte [rsp + 0x58], dil
mov qword [rsp + 0x59], rax
mov qword [rsp + 0x61], rax
test rcx, rcx
je 0x180027f1c
test rdx, rdx
je 0x180027f1c
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x120], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180027c77
xor eax, eax
jmp 0x180027f14
lea rdx, [rsp + 0x4c]
mov rcx, rax
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0xf0], r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x48]
cmp rax, 0x1400
jg 0x180027d7a
lea ecx, [r11 + 1]
call fcn.1800f3cdc
mov r12, rax
test rax, rax
je 0x180027d99
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
inc r8d
call fcn.1800f4fb0
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rcx, r12
call fcn.180027b90
xor eax, eax
mov byte [rsp + 0x70], dil
mov qword [rsp + 0x71], rax
mov qword [rsp + 0x79], rax
mov qword [rsp + 0x81], rax
lea ebx, [rax + 0x10]
mov qword [rsp + 0x89], rax
mov qword [rsp + 0x91], rax
mov qword [rsp + 0x99], rax
mov byte [rsp + 0xa1], al
lea rdi, [rsp + 0x58]
lea rsi, [rsp + 0x70]
nop
movzx r8d, byte [rdi]
lea rdx, str._02X
mov rcx, rsi
call fcn.1800f509c
add rsi, 2
inc rdi
sub rbx, 1
jne 0x180027d50
lea rcx, [rsp + 0x70]
jmp 0x180027ed8
cqo
mov ecx, 0x1001
sub rax, rdx
sar rax, 1
mov qword [rsp + 0x50], rax
call fcn.1800f3cdc
mov r12, rax
test rax, rax
jne 0x180027da9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180027f04
xor edx, edx
mov r8d, 0x1001
mov rcx, rax
call fcn.1800f4fb0
lea r9, [rsp + 0x40]
mov r8d, 0x800
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x54]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [r12 + 0x800]
lea r9, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, 2
xor r8d, r8d
mov edx, 0xfffffc00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [r12 + 0xc00]
lea r9, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x58]
mov edx, 0x1000
mov rcx, r12
call fcn.180027b90
xor eax, eax
mov byte [rsp + 0xa8], dil
mov qword [rsp + 0xa9], rax
mov qword [rsp + 0xb1], rax
mov qword [rsp + 0xb9], rax
lea ebx, [rax + 0x10]
mov qword [rsp + 0xc1], rax
mov qword [rsp + 0xc9], rax
mov qword [rsp + 0xd1], rax
mov byte [rsp + 0xd9], al
lea rdi, [rsp + 0x58]
lea rsi, [rsp + 0xa8]
nop
movzx r8d, byte [rdi]
lea rdx, str._02X
mov rcx, rsi
call fcn.1800f509c
add rsi, 2
inc rdi
sub rbx, 1
jne 0x180027eb0
lea rcx, [rsp + 0xa8]
mov rax, qword [rcx]
mov qword [rbp], rax
mov rax, qword [rcx + 8]
mov qword [rbp + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x10], rax
mov rax, qword [rcx + 0x18]
mov rcx, r12
mov qword [rbp + 0x18], rax
call fcn.1800f8c70
mov eax, 1
mov rsi, qword [rsp + 0x128]
mov r12, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800f4f80
add rsp, 0xf8
pop rdi
pop rbp
ret