Function at 0x14005f790
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1080]
mov eax, 0x1190
call fcn.1400b3d50
sub rsp, rax
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x11e0], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x1070], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x60], rcx
xor r14d, r14d
mov dword [rbp - 0x7c], r14d
lea rax, [0x140102478]
mov qword [rbp - 0x50], rax
lea rax, [0x1401025f8]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 8], eax
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx - 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
or rbx, 0xffffffffffffffff
mov qword [rbp - 0x78], rbx
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x14005f854
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005f984
mov rbx, rax
mov qword [rbp - 0x78], rax
lea rcx, [rbp]
call fcn.1400b01e0
nop dword [rax + rax]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov r8d, 0x1000
lea rdx, [rbp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005f8d7
mov r8d, dword [rbp - 0x80]
lea rdx, [rbp + 0x70]
lea rcx, [rbp]
call fcn.1400b0a68
cmp dword [rbp - 0x80], 0
ja 0x14005f8a0
lea rdx, [rbp]
lea rcx, [rbp + 0x60]
call fcn.1400b0134
movzx eax, byte [rbp + 0x6f]
movzx ecx, byte [rbp + 0x6e]
movzx edx, byte [rbp + 0x6d]
movzx r10d, byte [rbp + 0x6c]
movzx r11d, byte [rbp + 0x6b]
movzx edi, byte [rbp + 0x6a]
movzx esi, byte [rbp + 0x69]
movzx r14d, byte [rbp + 0x68]
movzx r15d, byte [rbp + 0x67]
movzx r12d, byte [rbp + 0x66]
movzx r13d, byte [rbp + 0x65]
movzx r9d, byte [rbp + 0x61]
movzx r8d, byte [rbp + 0x60]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r13d
movzx eax, byte [rbp + 0x64]
mov dword [rsp + 0x30], eax
movzx eax, byte [rbp + 0x63]
mov dword [rsp + 0x28], eax
movzx eax, byte [rbp + 0x62]
mov dword [rsp + 0x20], eax
lea rdx, str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
lea rcx, [rbp - 0x50]
call fcn.14000f520
mov rsi, qword [rbp - 0x70]
lea rax, [0x140102478]
mov qword [rsi], rax
lea rax, [0x1401025f8]
mov qword [rsi + 0x40], rax
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.140006eb0
nop
mov dword [rbp - 0x7c], 1
cmp rbx, 0xffffffffffffffff
je 0x14005f9d1
cmp qword [sym.imp.KERNEL32.dll_CloseHandle], 0
je 0x14005f9d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x78], 0xffffffffffffffff
lea rcx, [rbp - 0x50]
call fcn.1400048d0
mov rax, rsi
mov rcx, qword [rbp + 0x1070]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x11e0]
add rsp, 0x1190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret