Function at 0x1400ae340
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x38], r15
mov r15d, edx
mov rbp, rcx
test r8d, r8d
je 0x1400ae375
mov rcx, qword [rcx + 0xd0]
lea rdx, [0x1400ae140]
mov rcx, qword [rcx + 8]
call qword [0x140267e60]
mov edx, dword [0x140263af0]
mov r13d, 1
mov rsi, qword [0x140268120]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r8d, dword [0x140263af0]
mov rbx, rax
test rax, rax
jne 0x1400ae3ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400ae3d0
cmp r8, 2
jb 0x1400ae3ba
mov word [rax], r13w
jmp 0x1400ae3d6
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r12, str..pipemonect_pipe_cap_server
mov qword [rsp + 0x40], r14
mov rdx, r12
mov rcx, rsi
call fcn.140076d70
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ae469
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], 0
mov r8d, 6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ae42f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ae454
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], 0
mov r8d, r13d
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, r12
mov rcx, rsi
call fcn.140077000
test rbx, rbx
je 0x1400ae477
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400ae490
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x1400ae4b4
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400ae4ec
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x1400ae52a
mov rcx, qword [rbx + 0x18]
lea rax, vtable.CWifiNetwork_UDP.0
mov qword [rbx], rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rax, vtable.CNetwork.0
mov edx, 0x60
mov rcx, rbx
mov qword [rbx], rax
call fcn.1401d0398
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x1400ae565
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140268270]
test rcx, rcx
je 0x1400ae5cf
lea rax, vtable.ScreenSource.0
mov edx, Ordinal_217
mov qword [rcx], rax
call fcn.1401d0398
xor r13d, r13d
mov qword [0x140268270], r13
jmp 0x1400ae5d2
xor r13d, r13d
mov rcx, qword [0x1402684b8]
test rcx, rcx
je 0x1400ae5eb
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1402684b8], r13
mov rcx, qword [0x1402684b0]
test rcx, rcx
je 0x1400ae604
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1402684b0], r13
test r15d, r15d
mov r15, qword [rsp + 0x38]
je 0x1400ae7ab
mov rsi, qword [0x1402683e0]
test rsi, rsi
je 0x1400ae7ab
cmp qword [0x140263b00], 0xffffffffffffffff
je 0x1400ae6d5
mov r8d, dword [0x140263af0]
test rsi, rsi
jne 0x1400ae64a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400ae66d
cmp r8, 2
jb 0x1400ae657
mov word [rsi], 4
jmp 0x1400ae67a
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rsi, qword [0x1402683e0]
mov r14, qword [0x140268120]
mov ebx, dword [0x140263af0]
add r14, 0x50
mov rdi, qword [0x140263b00]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], r13
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ae6c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [0x140263b00], 0xffffffffffffffff
mov rdi, qword [0x140268120]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400ae78d
nop word [rax + rax]
mov r8, qword [rbx + 0x10]
mov rdx, r13
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
cmp cx, word [r12 + rdx*2]
jne 0x1400ae7c4
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r12 + rdx*2 + 2]
jne 0x1400ae7c4
add rdx, 2
cmp rdx, 0x20
jne 0x1400ae710
dec dword [r8 + 0x210]
mov rcx, qword [rbx + 0x10]
cmp dword [rcx + 0x210], 0
ja 0x1400ae78d
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbx + 8]
mov rcx, rbx
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
mov edx, Ordinal_27
dec qword [rdi + 0x20]
call fcn.1401d0398
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1402683e0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1402683e0], r13
mov r14, qword [rsp + 0x40]
mov qword [rbp + 0xd0], r13
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x1400ae700
jmp 0x1400ae78d