Function at 0x140023640
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100d0]
mov eax, 0x101d0
call fcn.1400417b0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x10220], rbx
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rbp + 0x100c0], rax
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov r12, rcx
mov qword [rsp + 0x50], rcx
xor edx, edx
lea r8d, [rdx + 0x54]
lea rcx, [rsp + 0x60]
call fcn.140042d50
call fcn.1400091f0
mov rcx, rax
test rax, rax
je 0x140023aea
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x48], rax
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
xor r14d, r14d
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
lea rcx, [rbp - 0x28]
call fcn.14000a280
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x38], r15
lea edx, [r14 + 0x64]
lea rcx, [rbp - 0x10]
lea r8, str..pipeRapidCRCNamedPipe
lea rax, [rbp - 0x10]
sub r8, rax
lea rax, [rdx + 0x7fffff9a]
test rax, rax
je 0x140023725
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140023725
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140023702
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov edx, 0xbb8
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov r13, 0xffffffffffffffff
test eax, eax
jne 0x14002376c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140023a56
mov edx, eax
mov rcx, qword [r12]
call fcn.14001b110
jmp 0x140023a56
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, r13
jne 0x1400237b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140023a56
mov edx, eax
mov rcx, qword [r12]
call fcn.14001b110
jmp 0x140023a56
lea r8, str.RapidCRCNamedEventWriteDone
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
lea r8, str.RapidCRCNamedEventReadDone
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
test rdi, rdi
je 0x140023a33
test rax, rax
je 0x140023a33
mov edx, 0xbb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140023845
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Inter_process_communication_failed:_waiting_too_long_for_client
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
test rbx, rbx
je 0x140023834
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
jmp 0x140023a50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140023891
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8, rdi
mov rdx, rbx
mov rcx, qword [r12]
call fcn.1400235e0
jmp 0x140023a56
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [rsp + 0x40], 0
jbe 0x1400239a5
nop word [rax + rax]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0xc0]
call fcn.140042d50
mov edx, 0xbb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400239f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 0xfffe
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400239cd
lea rcx, [rbp + 0xc0]
mov rax, r13
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140023920
mov r8d, eax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x48]
call fcn.140009d70
mov r15, qword [r15]
mov r12, qword [r15 + 8]
lea r9, [rsp + 0x60]
mov r8, r12
mov rdx, r15
mov rcx, qword [rsp + 0x48]
call fcn.140005990
mov r8, qword [rsp + 0x48]
mov rdx, qword [r8 + 8]
movabs rcx, 0x1af286bca1af285
sub rcx, rdx
cmp rcx, 1
jb 0x140023add
lea rcx, [rdx + 1]
mov qword [r8 + 8], rcx
mov qword [r15 + 8], rax
mov qword [r12], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
inc r14d
cmp r14d, dword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
jb 0x1400238b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
xor r14d, r14d
jmp 0x140023a59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call fcn.1400235e0
xor r14d, r14d
jmp 0x140023a56
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Interprocess_communication_failed:_waiting_too_long_for_client
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
test rbx, rbx
je 0x140023a1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
jmp 0x140023a56
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140023a48
mov edx, eax
mov rcx, qword [r12]
call fcn.14001b110
test rbx, rbx
je 0x140023a56
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r14d
mov rbx, qword [rbp - 0x28]
mov rdx, qword [rbx + 8]
lea rcx, [rbp - 0x28]
call fcn.14000a3e0
mov rax, qword [rbp - 0x28]
mov qword [rax + 8], rbx
mov rax, qword [rbp - 0x28]
mov qword [rax], rbx
mov rax, qword [rbp - 0x28]
mov qword [rax + 0x10], rbx
mov qword [rbp - 0x20], r14
mov edx, 0xb8
mov rcx, qword [rbp - 0x28]
call fcn.140040e00
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140023ab1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
mov rcx, qword [rbp + 0x100c0]
xor rcx, rsp
call fcn.140041820
mov rbx, qword [rsp + 0x10220]
add rsp, 0x101d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.140040d8c
nop
mov ecx, 0x80004005
call fcn.140007690
int3