Function at 0x180006500
Capabilities:
Read file on windows

Disassembly:
push rbp
push r13
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x580], rax
lea rax, [rsp + 0x58]
xor r13d, r13d
mov qword [rsp + 0x38], r13
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x18
mov edx, 0x70000
mov qword [rsp + 0x20], rax
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor r9d, r9d
mov qword [rsp + 0x48], r13
lea r8, [rsp + 0x4c]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x200
lea rdx, [rbp + 0x180]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rbp + 0x342], 0xee
mov rcx, r15
je 0x1800065ae
call fcn.180006a40
xor eax, eax
jmp 0x1800067d7
mov qword [rsp + 0x6c8], rbx
lea r8, [rsp + 0x4c]
mov qword [rsp + 0x698], r12
xor r9d, r9d
mov edx, 0x200
mov qword [rsp + 0x690], r14
mov qword [rsp + 0x48], 0x200
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x200
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rbp - 0x60]
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x18000c078]
lea r8, [rsp + 0x54]
xor r9d, r9d
mov qword [0x18000c078], rax
mov qword [rcx + 0x10], rax
lea rcx, [rbx - 5]
mov qword [rax], rcx
mov rcx, r15
mov qword [rax + 8], 5
mov qword [rax + 0x10], r13
mov r14, qword [rbp - 0x38]
shl r14, 9
mov edx, r14d
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r13
mov r8d, 0x200
lea rdx, [rbp + 0x380]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, dword [rbp - 0x30]
sub r12d, 1
je 0x180006786
mov qword [rsp + 0x6d0], rsi
mov rsi, r13
mov qword [rsp + 0x6d8], rdi
cmp rsi, 4
jne 0x1800066f2
add r14, 0x200
lea r8, [rsp + 0x54]
mov edx, r14d
mov qword [rsp + 0x50], r14
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
lea rcx, [rbp + 0x380]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r13
mov r8d, 0x200
lea rdx, [rbp + 0x380]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, r13
mov rdi, rsi
mov ecx, 0x18
shl rdi, 7
mov rbx, qword [rbp + rdi + 0x3a0]
sub rbx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x18000c078]
mov qword [0x18000c078], rax
mov qword [rcx + 0x10], rax
mov ecx, 0x18
mov qword [rax], rbx
mov qword [rax + 8], 0x15
mov qword [rax + 0x10], r13
mov rbx, qword [rbp + rdi + 0x3a8]
sub rbx, 0x14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [0x18000c078]
inc rsi
mov qword [0x18000c078], rax
mov qword [rdx + 0x10], rax
mov qword [rax], rbx
mov qword [rax + 8], 0x15
mov qword [rax + 0x10], r13
add r12d, 0xffffffff
jne 0x180006695
mov rdi, qword [rsp + 0x6d8]
mov rsi, qword [rsp + 0x6d0]
mov rbx, qword [rbp - 0x68]
mov ecx, 0x18
add rbx, 0xfffffffffffffffb
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x18000c078]
mov r14, qword [rsp + 0x690]
mov r12, qword [rsp + 0x698]
mov qword [0x18000c078], rax
mov qword [rcx + 0x10], rax
mov qword [rax], rbx
mov rbx, qword [rsp + 0x6c8]
mov qword [rax + 8], 6
mov qword [rax + 0x10], r13
mov eax, 1
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.180002850
add rsp, 0x6a0
pop r15
pop r13
pop rbp
ret