Function at 0x1400ee890
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x210
call fcn.140102230
xor r15d, r15d
mov r14d, 1
xor r9d, r9d
mov qword [rbp + 0x148], r15
xor r8d, r8d
mov dword [rbp + 0x140], r15d
mov edx, r14d
xor ecx, ecx
lea ebx, [r15 + 0xa]
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
mov qword [0x14027f460], rax
test rax, rax
je 0x1400eeb0b
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call fcn.1400ef5d0
test eax, eax
jne 0x1400eeb0b
call fcn.1400e3620
test eax, eax
jne 0x1400eeb0b
mov rcx, qword [0x14027f090]
call fcn.1400f0820
test eax, eax
jne 0x1400ee980
mov eax, ebx
dec ebx
test eax, eax
jle 0x1400ee966
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rcx, qword [0x14027f090]
call fcn.1400f0820
test eax, eax
je 0x1400ee943
test ebx, ebx
jg 0x1400ee980
lea rdx, str.Error:__Unable_to_connect_to_server._n
mov ecx, 3
call fcn.140046fa0
jmp 0x1400eeb0b
mov eax, dword [0x14027d2ac]
test eax, eax
jne 0x1400ee9c8
cmp byte [rsp + 0x40], r15b
je 0x1400ee9c8
mov rcx, qword [0x14027f090]
lea rdx, [rsp + 0x40]
call fcn.1400ef890
mov rcx, qword [0x14027f090]
lea rdx, [rsp + 0x40]
call fcn.1400e8550
mov eax, dword [0x14027d2ac]
cmp dword [rsp + 0x38], r15d
cmovne eax, r14d
mov dword [0x14027d2ac], eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400eeaa8
test eax, eax
jne 0x1400eea99
movabs rbx, 0x100000601
nop dword [rax + rax]
mov r9d, 0x200
lea r8, [rbp + 0x150]
lea rdx, str.____n_s
call fcn.1400ef530
cmp eax, r14d
jne 0x1400eea93
mov edx, 0x200
lea rcx, [rbp + 0x150]
call fcn.14012a5d8
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400eea59
mov r8d, 3
lea rdx, [0x140194a88]
lea rcx, [rbp + 0x150]
call fcn.14012ed9c
test eax, eax
jne 0x1400eea59
mov rax, qword [rbp + 0x153]
cmp al, 0x20
ja 0x1400eea59
bt rbx, rax
jb 0x1400eea7f
mov rcx, qword [0x14027f090]
lea rdx, [rbp + 0x150]
call fcn.1400ef890
mov rcx, qword [0x14027f090]
lea rdx, [rbp + 0x150]
call fcn.1400e8550
mov eax, dword [0x14027d2ac]
test eax, eax
jne 0x1400eea99
mov rcx, qword [rsp + 0x30]
jmp 0x1400ee9f0
mov eax, dword [0x14027d2ac]
cmp dword [rsp + 0x38], r15d
cmovne eax, r14d
mov dword [0x14027d2ac], eax
mov r9, qword [0x14027f090]
lea r8, [0x1400edf10]
mov qword [rsp + 0x28], r15
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rbp + 0x148], rax
test rax, rax
jne 0x1400eeaf2
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.140046fa0
jmp 0x1400eeb0b
mov r9d, 0xffffffff
lea rdx, [rbp + 0x148]
xor r8d, r8d
mov ecx, r14d
call qword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp qword [rbp + 0x148], r15
je 0x1400eeb69
mov dword [0x14027d2ac], r14d
call fcn.1400ef990
mov rcx, qword [rbp + 0x148]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbp + 0x148]
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov ecx, dword [rbp + 0x140]
mov edx, 0x3eb
test eax, eax
cmove ecx, edx
mov dword [rbp + 0x140], ecx
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.1400e35d0
mov rcx, qword [0x14027f460]
test rcx, rcx
je 0x1400eeb87
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14027f460], r15
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rbp + 0x140]
test rcx, rcx
je 0x1400eeb9c
call fcn.140141a34
cmp ebx, 0x3ea
jne 0x1400eeba9
call fcn.1400f6160
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140100920
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret