Function at 0x14010c280
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
xor r15b, r15b
mov qword [rsp + 0x30], 0
mov r12d, 0x3e8
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x88], rbp
lea r13, str.0cg_
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
nop word [rax + rax]
mov rcx, qword [r14 + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14010c316
xor r12d, r12d
mov r15b, 1
mov rcx, qword [r14 + 0x10]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x14010c373
test eax, eax
jne 0x14010c71b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x14010c71b
cmp eax, 0x2df
je 0x14010c724
lea rcx, [0x1405f9638]
call fcn.1400892d0
jmp 0x14010c71b
mov rcx, qword [rbx - 0x20]
add rbx, 0xffffffffffffffe0
xor r9d, r9d
lea rbp, [rbx + 0x20]
mov rdx, rbp
lea r8, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14010c3a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0xea
jne 0x14010c41e
mov byte [rbx + 0x44], 1
mov eax, dword [rbx + 8]
cmp eax, 1
jne 0x14010c5ea
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1401cd220.0]
test al, al
jne 0x14010c4f9
mov rax, qword [str.0cg_]
cmp rax, r13
je 0x14010c5a1
test byte [rax + 0x1c], 1
je 0x14010c5a1
cmp byte [rax + 0x19], 2
jb 0x14010c5a1
mov rcx, qword [rbx]
call fcn.14010bd10
mov rcx, qword [str.0cg_]
lea r8, [0x1405f97c8]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140082b10
jmp 0x14010c5a1
cmp edi, 0x3e5
jne 0x14010c468
mov rcx, qword [str.0cg_]
cmp rcx, r13
je 0x14010c71b
test byte [rcx + 0x1c], 1
je 0x14010c71b
cmp byte [rcx + 0x19], 2
jb 0x14010c71b
mov eax, dword [rbx + 0x40]
mov edx, 0xa
mov r9d, dword [rbx + 8]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14010bed0
jmp 0x14010c71b
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1401cd220.0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
cmp edi, 0x6d
je 0x14010c71b
mov rax, qword [str.0cg_]
cmp rax, r13
je 0x14010c71b
test byte [rax + 0x1c], 1
je 0x14010c71b
cmp byte [rax + 0x19], 2
jb 0x14010c71b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.0cg_]
lea r8, [0x1405f97c8]
mov edx, 0xb
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140082b10
jmp 0x14010c71b
mov edx, dword [rbx + 0x1c]
lea r9, [rbx + 0x40]
mov r8d, dword [rbx + 0x18]
mov rcx, qword [rbx]
sub r8d, edx
add rdx, qword [rbx + 0x10]
mov dword [rbx + 8], 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010c5db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14010c5db
cmp eax, 0xea
je 0x14010c5db
mov rcx, qword [str.0cg_]
cmp rcx, r13
je 0x14010c5a1
test byte [rcx + 0x1c], 1
je 0x14010c57b
cmp byte [rcx + 0x19], 2
jb 0x14010c57b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x16
mov r9d, eax
call fcn.140082b10
mov rcx, qword [str.0cg_]
cmp rcx, r13
je 0x14010c5a1
test byte [rcx + 0x1c], 1
je 0x14010c5a1
cmp byte [rcx + 0x19], 4
jb 0x14010c5a1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0xd
call fcn.14007d150
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1401cd220.0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
xor edx, edx
mov rcx, r14
call fcn.14010c770
jmp 0x14010c71b
cmp eax, 3
je 0x14010c707
cmp eax, 2
jne 0x14010c71b
mov rdx, rbx
mov rcx, r14
call fcn.14010cbb0
test al, al
jne 0x14010c639
mov rcx, qword [str.0cg_]
cmp rcx, r13
je 0x14010c6e1
test byte [rcx + 0x1c], 1
je 0x14010c6e1
cmp byte [rcx + 0x19], 2
jb 0x14010c6e1
mov edx, 0xe
jmp 0x14010c6d1
mov edx, dword [rbx + 0x1c]
lea r9, [rbx + 0x40]
mov r8d, dword [rbx + 0x18]
mov rcx, qword [rbx]
sub r8d, edx
add rdx, qword [rbx + 0x10]
mov dword [rbx + 8], 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010c71b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14010c71b
cmp eax, 0xea
je 0x14010c71b
mov rcx, qword [str.0cg_]
cmp rcx, r13
je 0x14010c6e1
test byte [rcx + 0x1c], 1
je 0x14010c6bb
cmp byte [rcx + 0x19], 2
jb 0x14010c6bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
mov edx, 0x16
mov r9d, eax
call fcn.140082b10
mov rcx, qword [str.0cg_]
cmp rcx, r13
je 0x14010c6e1
test byte [rcx + 0x1c], 1
je 0x14010c6e1
cmp byte [rcx + 0x19], 2
jb 0x14010c6e1
mov edx, 0xf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1405f97c8]
call fcn.14007d150
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1401cd220.0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 8]
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
test r15b, r15b
je 0x14010c300
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x1401cd220.0]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140359070
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rbx
ret