Function at 0x140012180
Capabilities:
Print debug messages
Read file on windows
Read from mailslot

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140081048]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
call fcn.140011f30
test al, al
jne 0x140012304
lea rax, str._Error__Mailslot::Server::Start_____SetMailslotAccess_____
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x3c
lea rcx, [rdi + 0x28]
cmp qword [rdi + 0x40], 8
jb 0x1400121e8
mov rcx, qword [rdi + 0x28]
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x38], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x40], xmm1
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140002ad0
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400122da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400122d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400128a5
call fcn.140025820
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140025800
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x14]
xor edx, edx
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x1400122da
lea r12, str._Error__Mailslot::Server::Start____Bytes_read____exceeds_max___
movabs r15, 0x2000000000000000
movabs r13, 0x2000000000000004
lea rbx, str._Error__Mailslot::Server::Start____Bytes_read____is_less_than_a_message_header
mov r8d, dword [rbp + 0x14]
cmp r8d, 0xffffffff
jne 0x14001235c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140012880
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x10]
lea rdx, [rbp + 0x20]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140012880
mov ecx, dword [rbp + 0x10]
cmp ecx, 0x190
jbe 0x140012489
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 0x43
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x44], 0x190
mov qword [rsp + 0x38], r13
mov qword [rbp - 0x60], 2
lea rax, [rsp + 0x30]
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm1
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140002ad0
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140012879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012874
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400128ab
jmp 0x140012874
cmp ecx, 4
jae 0x14001257e
mov qword [rbp], rbx
mov qword [rbp + 8], 0x50
mov dword [rbp - 0x18], ecx
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x10], 1
lea rax, [rbp - 0x20]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rbp]
movdqa xmmword [rbp - 0x50], xmm1
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140002ad0
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140012879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012874
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400128b1
jmp 0x140012874
movzx edx, word [rbp + 0x22]
add rdx, 4
cmp rcx, rdx
je 0x140012699
lea rax, str._Error__Mailslot::Server::Start____Bytes_read____differs_from_message_header___
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 0x53
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x44], rdx
movabs rax, 0x4000000000000004
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x40], 2
lea rax, [rsp + 0x30]
mov qword [rbp - 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x50], xmm1
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140002ad0
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140012879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012874
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400128b7
jmp 0x140012874
mov ecx, sendto
call fcn.14002585c
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov ecx, dword [rbp + 0x10]
call fcn.14002c5d8
mov qword [rbx], rax
test rax, rax
jne 0x14001278c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea r8d, [rax + 0x50]
lea rdx, str._Error__Mailslot::Server::Start____Failed_to_allocate_memory_for_context_buffer.
lea rcx, [rsp + 0x30]
call fcn.140001990
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140012879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012874
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400128bd
jmp 0x140012874
mov r8d, dword [rbp + 0x10]
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.1400277a0
mov eax, dword [rbp + 0x10]
mov dword [rbx + 8], eax
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TrySubmitThreadpoolCallback]
test eax, eax
jne 0x140012879
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea r8d, [rax + 0x46]
lea rdx, str._Error__Mailslot::Server::Start____Failed_sending_message_to_callback.
lea rcx, [rsp + 0x30]
call fcn.140001990
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140012879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012874
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400128c3
call fcn.140025820
lea rbx, str._Error__Mailslot::Server::Start____Bytes_read____is_less_than_a_message_header
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x14]
xor edx, edx
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x1400122da
jmp 0x140012342
call fcn.14002c134
int3
call fcn.14002c134
int3
call fcn.14002c134
int3
call fcn.14002c134
int3
call fcn.14002c134
int3
call fcn.14002c134
int3