Function at 0x1400f0970
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 [0x14027df48]
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.140104310
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 [0x1402824e0], rax
test rax, rax
je 0x1400f0beb
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call fcn.1400f16b0
test eax, eax
jne 0x1400f0beb
call fcn.1400e5560
test eax, eax
jne 0x1400f0beb
mov rcx, qword [0x140282110]
call fcn.1400f2900
test eax, eax
jne 0x1400f0a60
mov eax, ebx
dec ebx
test eax, eax
jle 0x1400f0a46
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rcx, qword [0x140282110]
call fcn.1400f2900
test eax, eax
je 0x1400f0a23
test ebx, ebx
jg 0x1400f0a60
lea rdx, str.Error:__Unable_to_connect_to_server._n
mov ecx, 3
call fcn.140046fa0
jmp 0x1400f0beb
mov eax, dword [0x14028030c]
test eax, eax
jne 0x1400f0aa8
cmp byte [rsp + 0x40], r15b
je 0x1400f0aa8
mov rcx, qword [0x140282110]
lea rdx, [rsp + 0x40]
call fcn.1400f1970
mov rcx, qword [0x140282110]
lea rdx, [rsp + 0x40]
call fcn.1400ea490
mov eax, dword [0x14028030c]
cmp dword [rsp + 0x38], r15d
cmovne eax, r14d
mov dword [0x14028030c], eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400f0b88
test eax, eax
jne 0x1400f0b79
movabs rbx, 0x100000601
nop dword [rax + rax]
mov r9d, 0x200
lea r8, [rbp + 0x150]
lea rdx, str.____n_s
call fcn.1400f1610
cmp eax, r14d
jne 0x1400f0b73
mov edx, 0x200
lea rcx, [rbp + 0x150]
call fcn.14012c6b8
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400f0b39
mov r8d, 3
lea rdx, [0x140196bc8]
lea rcx, [rbp + 0x150]
call fcn.140130e7c
test eax, eax
jne 0x1400f0b39
mov rax, qword [rbp + 0x153]
cmp al, 0x20
ja 0x1400f0b39
bt rbx, rax
jb 0x1400f0b5f
mov rcx, qword [0x140282110]
lea rdx, [rbp + 0x150]
call fcn.1400f1970
mov rcx, qword [0x140282110]
lea rdx, [rbp + 0x150]
call fcn.1400ea490
mov eax, dword [0x14028030c]
test eax, eax
jne 0x1400f0b79
mov rcx, qword [rsp + 0x30]
jmp 0x1400f0ad0
mov eax, dword [0x14028030c]
cmp dword [rsp + 0x38], r15d
cmovne eax, r14d
mov dword [0x14028030c], eax
mov r9, qword [0x140282110]
lea r8, [0x1400efff0]
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 0x1400f0bd2
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 0x1400f0beb
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 0x1400f0c49
mov dword [0x14028030c], r14d
call fcn.1400f1a70
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.1400e5510
mov rcx, qword [0x1402824e0]
test rcx, rcx
je 0x1400f0c67
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x1402824e0], r15
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rbp + 0x140]
test rcx, rcx
je 0x1400f0c7c
call fcn.140143b14
cmp ebx, 0x3ea
jne 0x1400f0c89
call fcn.1400f8240
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140102a00
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret