Function at 0x18007a530
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14, rdx
mov rsi, rcx
add rcx, 0xffffffffffffff40
mov rdx, r8
call fcn.1800799dc
mov r13, rax
xor edi, edi
test rax, rax
jne 0x18007a593
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsi - 0x70]
call fcn.180073ff8
test al, al
je 0x18007a5bb
mov edx, 4
mov rcx, qword [rsi - 0x70]
call fcn.180073a74
mov rcx, rax
call fcn.180073230
mov r12d, eax
jmp 0x18007a5bf
or r12d, 0xffffffff
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8b, 1
xor edx, edx
lea rcx, [rbp - 0x61]
call fcn.18006d90c
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], rdi
or rbx, 0xffffffffffffffff
mov qword [rbp + 0x7f], rbx
lfence
mov ecx, 0x10027
call fcn.180082368
test rax, rax
je 0x18007a86d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [rbp - 0x79], rdi
lea r15, [rdi + 0x10000]
mov qword [rbp - 0x69], r15
xor edx, edx
mov r8d, 0x10000
mov rcx, rdi
call fcn.1800a10b0
mov qword [rbp - 0x71], r15
xor edx, edx
lea r8d, [rbx + 0x21]
lea rcx, [rbp - 0x51]
call fcn.1800a10b0
lea rcx, [rbp - 0x61]
call fcn.18006db08
mov qword [rbp - 0x39], rax
and dword [rbp + 0x67], 0
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, 0x10000
mov rdx, rdi
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007a69c
mov rcx, qword [r14]
mov edx, dword [rbp + 0x67]
add rdx, rdi
mov r8, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x18007a68e
mov r8, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x19]
jmp 0x18007a7fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f], eax
mov ecx, eax
sub ecx, 0xe9
je 0x18007a810
sub ecx, 1
je 0x18007a7dc
cmp ecx, 0x2fb
je 0x18007a6fd
mov rcx, qword [rsi + 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18007a6db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x7f]
lea r9, str.PopFromDevice__ReadFile
mov r8d, eax
and qword [rsi + 0x50], 0
mov rcx, qword [rsi - 0x70]
mov edx, 0x1b
call fcn.180074014
jmp 0x18007a829
mov edx, r12d
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18007a73e
mov rcx, qword [rsi - 0x70]
cmp eax, 0x102
je 0x18007a728
lea r9, str.PopFromDevice__WaitForSingleObject
mov r8d, 0x3e5
jmp 0x18007a6ee
lea r8, str.PopFromDevice__WaitForSingleObject
mov edx, 0x20
call fcn.180074014
jmp 0x18007a829
and dword [rbp + 0x67], 0
xor r9d, r9d
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x51]
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x18007a7bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, eax
sub ecx, 0xe9
je 0x18007a810
cmp ecx, 1
je 0x18007a79a
mov rcx, qword [rsi + 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18007a78b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, str.PopFromDevice__GetOverlappedResult
mov r8d, r12d
jmp 0x18007a6e5
mov rcx, qword [r14]
mov edx, dword [rbp + 0x67]
add rdx, rdi
mov r8, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x18007a7b0
mov r8, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 9]
jmp 0x18007a7fb
mov rcx, qword [r14]
mov edx, dword [rbp + 0x67]
add rdx, rdi
mov r8, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x18007a7d1
mov r8, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp + 7]
jmp 0x18007a7fb
mov rcx, qword [r14]
mov edx, dword [rbp + 0x67]
add rdx, rdi
mov r8, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x18007a7f2
mov r8, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp + 0x17]
mov r9, rdi
add r8, qword [rcx + 0x10]
call fcn.1800793ac
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
jmp 0x18007a829
mov rcx, qword [rsi + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18007a824
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi + 0x50], 0
sub r15, rdi
cmp r15, 0x1000
jb 0x18007a850
lfence
add r15, 0x27
mov rax, qword [rdi - 8]
sub rdi, rax
lea rcx, [rdi - 8]
cmp rcx, 0x1f
ja 0x18007a86d
mov rdi, rax
mov rdx, r15
mov rcx, rdi
call fcn.180082014
nop
lea rcx, [rbp - 0x61]
call fcn.18006dad4
mov rax, rbx
jmp 0x18007a578
call fcn.1800a3f4c
int3