Function at 0x140080240
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 [0x14016c4a0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, pe_nt_image_headers64
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 [0x140183938], rax
test rax, rax
je 0x1400804d2
lea r8, [rsp + 0x50]
mov rdx, rsi
mov ecx, edi
call fcn.1400815c0
test eax, eax
jne 0x1400804d2
lea rax, [rbp + 0x70]
mov dword [rsp + 0x30], 0x40008
mov qword [rsp + 0x28], rax
lea rdx, str..pipe14579667_532A_42C2_9200_FD0544E09B90
lea rax, [0x14007f460]
xor r9d, r9d
mov r8d, r14d
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x70]
call fcn.1400029b9
test eax, eax
jne 0x140080336
lea rdx, str.Error:__Unable_to_create_IPC_channel._n
lea ecx, [rbx - 0x61]
call fcn.1400049c1
jmp 0x1400804d2
lea rcx, [rbp + 0x70]
call fcn.1400024b4
test eax, eax
jne 0x14008037d
mov eax, ebx
dec ebx
test eax, eax
jle 0x140080363
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x70]
call fcn.1400024b4
test eax, eax
je 0x140080343
test ebx, ebx
jg 0x14008037d
lea rdx, str.Error:__Unable_to_connect_to_server._n
mov ecx, 3
call fcn.1400049c1
jmp 0x1400804d2
mov eax, dword [0x14016d9b8]
test eax, eax
jne 0x1400803bf
cmp byte [rsp + 0x6c], r15b
je 0x1400803bf
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x70]
call fcn.1400819f0
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x70]
call fcn.1400039ef
mov eax, dword [0x14016d9b8]
cmp dword [rsp + 0x64], r15d
cmovne eax, r14d
mov dword [0x14016d9b8], eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140080478
test eax, eax
jne 0x140080478
movabs rbx, 0x100000601
nop
mov r9d, 0x101
lea r8, [rbp + 0x2c0]
lea rdx, str.____n_s
call fcn.140001df7
cmp eax, r14d
jne 0x140080478
mov edx, 0x101
lea rcx, [rbp + 0x2c0]
call fcn.140004e71
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x140080445
mov r8d, 3
lea rdx, [0x14012ac84]
lea rcx, [rbp + 0x2c0]
call fcn.140001ae6
test eax, eax
jne 0x140080445
movzx eax, byte [rbp + 0x2c3]
cmp al, 0x20
ja 0x140080445
bt rbx, rax
jb 0x140080465
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp + 0x70]
call fcn.1400819f0
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp + 0x70]
call fcn.1400039ef
cmp dword [0x14016d9b8], r15d
jne 0x140080478
mov rcx, qword [rsp + 0x50]
jmp 0x1400803e0
mov qword [rsp + 0x28], r15
lea r9, [rbp + 0x70]
lea r8, [0x14007f580]
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 0x1400804bd
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 0x1400804d2
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 0x140080522
mov dword [0x14016d9b8], r14d
call fcn.140081b20
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 [0x140183938]
test rcx, rcx
je 0x140080544
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140183938], r15
mov rcx, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x40]
test rcx, rcx
je 0x140080557
call fcn.140003cfb
cmp ebx, 0x3ea
jne 0x140080564
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