Function at 0x180017590
Capabilities:
Create mailslot

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1800a4088]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
mov r13, rdx
mov r14d, ecx
xor r8d, r8d
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r8b
mov qword [rbp - 0x80], r8
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], r8b
movdqa xmm0, xmmword [0x180097c30]
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], r8b
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], r8b
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], r8b
mov qword [rbp - 8], 0xffffffffffffffff
lea r15d, [rcx + 4]
cmp ecx, r15d
jae 0x1800176cb
lea r9d, [r8 + 0x73]
lea r10d, [r8 + 0x69]
nop
mov eax, ecx
sub eax, 0xb8
je 0x1800176b0
sub eax, 1
je 0x18001769c
sub eax, 1
je 0x180017686
cmp eax, 1
jne 0x1800176c4
mov dword [rbp + 0x136], 0x5c0074
mov word [rbp + 0x13a], r9w
mov dword [rbp + 0x13c], 0x6d0061
jmp 0x1800176c4
mov dword [rbp + 0x12e], 0x73006c
mov dword [rbp + 0x132], 0x6f006c
jmp 0x1800176c4
mov dword [rbp + 0x128], 0x61006d
mov word [rbp + 0x12c], r10w
jmp 0x1800176c4
mov dword [rbp + 0x120], 0x5c005c
mov dword [rbp + 0x124], 0x5c002e
inc ecx
cmp ecx, r15d
jb 0x180017650
mov esi, r14d
mov r12d, 0x6c
movzx ebx, byte [rsp + 0x30]
cmp r14d, r15d
jae 0x18001789b
lea ecx, [r12 + 4]
mov eax, esi
sub eax, 0xb3
je 0x18001774b
sub eax, 1
je 0x18001772c
sub eax, 1
je 0x180017712
cmp eax, 3
jne 0x180017890
mov dword [rbp + 0x140], 0x6c0070
jmp 0x180017890
mov r8d, 0x10f
mov rdx, r13
lea rcx, [rsp + 0x70]
call fcn.180008be0
mov bl, 1
jmp 0x180017889
cmp qword [rsp + 0x58], 0
je 0x180017890
lea rcx, [r13 + 8]
lea rdx, [rsp + 0x48]
call fcn.1800477b0
jmp 0x180017889
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x60], 0xf
mov byte [rbp + 0x48], 0
mov qword [rbp + 0x78], r8
mov qword [rbp + 0x80], 0xf
mov byte [rbp + 0x68], 0
mov qword [rbp + 0x88], 0xffffffffffffffff
lea rdx, [rbp]
lea rcx, [rbp + 0x90]
call fcn.180047840
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xb0]
call fcn.180047840
nop
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xd0], rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0xd8]
call fcn.180047840
nop
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0xf8]
call fcn.180047840
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x118], rax
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.1800477b0
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x70]
call fcn.1800477b0
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x50], rax
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x48]
call fcn.1800477b0
lea rdx, [rbp + 0xf8]
lea rcx, [rbp - 0x28]
call fcn.1800477b0
mov rax, qword [rbp + 0x118]
mov qword [rbp - 8], rax
lea rcx, [rbp + 0x90]
call fcn.180006ff0
nop
lea rcx, [rbp]
call fcn.180006ff0
mov r9d, 0x86
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.180022cf0
test al, al
je 0x1800178e3
cmp qword [rbp - 0x80], 0
je 0x1800178dc
xor r8d, r8d
lea ecx, [r8 + 0x70]
inc esi
cmp esi, r15d
jb 0x1800176e7
mov ecx, r14d
lea edx, [r14 + 5]
cmp r14d, edx
jae 0x18001792c
mov r11d, 0x6d
mov eax, ecx
sub eax, 0xb3
je 0x180017a03
sub eax, 5
je 0x180017902
sub eax, 1
je 0x1800178f6
sub eax, 1
je 0x1800178ea
cmp eax, 1
jne 0x180017926
mov word [rbp + 0x158], r8w
jmp 0x180017926
mov bl, 1
jmp 0x180017a03
xor bl, bl
jmp 0x180017a03
mov dword [rbp + 0x154], 0x74006f
jmp 0x180017926
mov dword [rbp + 0x150], 0x6c0073
jmp 0x180017926
mov dword [rbp + 0x144], 0x5f0065
mov word [rbp + 0x148], r11w
mov dword [rbp + 0x14a], 0x690061
mov word [rbp + 0x14e], r12w
inc ecx
cmp ecx, edx
jb 0x1800178b1
lea r12d, [r14 - 4]
cmp r14d, r12d
jbe 0x180017a03
mov rsi, qword [rsp + 0x38]
movzx r15d, byte [rsp + 0x30]
mov eax, r14d
sub eax, 0xb5
je 0x1800179b1
sub eax, 1
je 0x18001799d
sub eax, 1
je 0x180017975
cmp eax, 1
jne 0x1800179f7
movzx r15d, al
mov qword [rdi], 0
mov qword [rdi + 8], r8
jmp 0x1800179f7
mov qword [rdi + 0x10], r8
xor r9d, r9d
xor edx, edx
mov r8d, 0xffffffff
lea rcx, [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov rsi, rax
xor r8d, r8d
mov qword [rdi + 0x28], r8
jmp 0x1800179f7
mov ecx, r8d
movzx eax, r15b
cmp rsi, 0xffffffffffffffff
cmovne ecx, eax
movzx r15d, cl
jmp 0x1800179f7
mov qword [rdi + 0x20], 1
test r15b, r15b
je 0x1800179f3
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x1800179e7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetMailslotInfo]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov dword [rdi + 0x18], r8d
dec r14d
cmp r14d, r12d
ja 0x180017944
lea rcx, [rsp + 0x70]
call fcn.180006ff0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180017a47
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180017a42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180017a74
call fcn.1800534b4
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.180053490
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800627dc
int3