Function at 0x1402392f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xd8
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12, qword [rbp + 0x7f]
xor eax, eax
mov dword [rsp + 0x38], eax
mov rbx, r9
mov dword [rsp + 0x30], eax
mov rdi, rdx
mov qword [rbp - 0x79], rax
mov rsi, rcx
mov qword [rbp - 0x71], rax
mov qword [rsp + 0x40], r8
call fcn.140231084
mov rcx, qword [rsi + 0x38]
mov r13, rax
mov r15d, dword [rsp + 0x40]
mov dword [rbp - 0x69], ebx
shr rbx, 0x20
mov dword [rbp - 0x65], ebx
lea rbx, [rsi + 0x20]
mov qword [rbp - 0x61], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov cl, byte [rsi + 0x18]
mov r14d, 1
test cl, cl
je 0x1402393ae
mov rcx, qword [rsi + 0x28]
mov eax, r14d
lock xadd qword [rcx + 0x38], rax
mov ecx, 0x323
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test rbx, rbx
je 0x1402393f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x1402393f4
mov rcx, qword [rsi]
lea rax, [rbp - 0x79]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
setne dil
test rbx, rbx
je 0x1402393eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test dil, dil
jne 0x1402395c4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14023949d
cmp eax, 0x3e5
je 0x14023949d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x1402395cc
and dword [rbp - 0x25], 0
lea rax, str.Failed_to_read_file_for_hashing
and dword [rbp - 0x15], 0
and dword [rbp - 5], 0
mov qword [rbp - 0x31], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x21], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x29], 0x40
mov dword [rbp - 0x19], 8
mov dword [rbp - 9], 4
lea rax, [rbp - 0x51]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140484bf7]
xor r8d, r8d
mov dword [rsp + 0x20], 5
call fcn.140001208
jmp 0x1402395cc
and dword [rsp + 0x34], 0
mov r9d, dword [r13 + 0x18]
lea r8, [rsp + 0x34]
mov rcx, rsi
lea rdx, [rbp - 0x79]
call fcn.140239024
test al, al
jne 0x1402395be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
cmp eax, 0x102
je 0x1402394e6
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1402395d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov al, byte [rsi + 0x18]
mov edi, 0x80070000
test al, al
je 0x140239532
mov rax, qword [rsi + 0x28]
lock xadd qword [rax + 0x38], r14
mov ecx, 0x323
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test rbx, rbx
je 0x140239560
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x140239560
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CancelIo]
nop dword [rax + rax]
test eax, eax
setne r14b
test rbx, rbx
je 0x14023955b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test r14b, r14b
jne 0x140239585
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edx, ax
or edx, edi
test eax, eax
cmovle edx, eax
mov r8d, edx
lea rcx, str.Common
call fcn.140329e3c
or r9d, 0xffffffff
lea r8, [rsp + 0x34]
lea rdx, [rbp - 0x79]
mov rcx, rsi
call fcn.140239024
test al, al
jne 0x1402395be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, edi
cmp ecx, 0x3e3
je 0x1402395d0
jmp 0x1402394dc
mov eax, dword [rsp + 0x34]
jmp 0x1402395c8
mov eax, dword [rsp + 0x38]
mov qword [r12], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140356560
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret