Function at 0x1400802a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x120
call fcn.1400033e1
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x250
call fcn.1400033e1
xor r15d, r15d
mov r14d, 1
xor r9d, r9d
mov qword [rsp + 0x48], r15
xor r8d, r8d
mov dword [rsp + 0x40], r15d
mov edx, r14d
xor ecx, ecx
lea ebx, [r15 + 0x64]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140183678], rax
test rax, rax
je 0x140080532
lea r8, [rsp + 0x50]
mov rdx, rsi
mov ecx, edi
call fcn.140081620
test eax, eax
jne 0x140080532
lea rax, [rbp + 0x70]
mov dword [rsp + 0x30], 0x40008
mov qword [rsp + 0x28], rax
lea rdx, str..pipe14579667_532A_42C2_9200_FD0544E09B90
lea rax, [0x14007f590]
xor r9d, r9d
mov r8d, r14d
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x70]
call fcn.1400029b9
test eax, eax
jne 0x140080396
lea rdx, str.Error:__Unable_to_create_IPC_channel._n
lea ecx, [rbx - 0x61]
call fcn.1400049c1
jmp 0x140080532
lea rcx, [rbp + 0x70]
call fcn.1400024b4
test eax, eax
jne 0x1400803dd
mov eax, ebx
dec ebx
test eax, eax
jle 0x1400803c3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x70]
call fcn.1400024b4
test eax, eax
je 0x1400803a3
test ebx, ebx
jg 0x1400803dd
lea rdx, str.Error:__Unable_to_connect_to_server._n
mov ecx, 3
call fcn.1400049c1
jmp 0x140080532
mov eax, dword [0x14016d6f8]
test eax, eax
jne 0x14008041f
cmp byte [rsp + 0x6c], r15b
je 0x14008041f
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x70]
call fcn.140081a50
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x70]
call fcn.1400039ef
mov eax, dword [0x14016d6f8]
cmp dword [rsp + 0x64], r15d
cmovne eax, r14d
mov dword [0x14016d6f8], eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400804d8
test eax, eax
jne 0x1400804d8
movabs rbx, 0x100000601
nop
mov r9d, 0x101
lea r8, [rbp + 0x2c0]
lea rdx, str.____n_s
call fcn.140001df7
cmp eax, r14d
jne 0x1400804d8
mov edx, 0x101
lea rcx, [rbp + 0x2c0]
call fcn.140004e71
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400804a5
mov r8d, 3
lea rdx, [0x14012ac14]
lea rcx, [rbp + 0x2c0]
call fcn.140001ae6
test eax, eax
jne 0x1400804a5
movzx eax, byte [rbp + 0x2c3]
cmp al, 0x20
ja 0x1400804a5
bt rbx, rax
jb 0x1400804c5
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp + 0x70]
call fcn.140081a50
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp + 0x70]
call fcn.1400039ef
cmp dword [0x14016d6f8], r15d
jne 0x1400804d8
mov rcx, qword [rsp + 0x50]
jmp 0x140080440
mov qword [rsp + 0x28], r15
lea r9, [rbp + 0x70]
lea r8, [0x14007f6b0]
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14008051d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_create_client_thread._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400049c1
jmp 0x140080532
or r9d, 0xffffffff
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp qword [rsp + 0x48], r15
je 0x140080582
mov dword [0x14016d6f8], r14d
call fcn.140081b80
mov rcx, qword [rsp + 0x48]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
mov edx, 0x3eb
test eax, eax
cmove ecx, edx
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x70]
call fcn.140002996
mov rcx, qword [0x140183678]
test rcx, rcx
je 0x1400805a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140183678], r15
mov rcx, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x40]
test rcx, rcx
je 0x1400805b7
call fcn.140003cfb
cmp ebx, 0x3ea
jne 0x1400805c4
call fcn.140002027
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret