Function at 0x1400f4570
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 [0x1402854d8]
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.140107f60
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 [0x140289a80], rax
test rax, rax
je 0x1400f47eb
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call fcn.1400f52b0
test eax, eax
jne 0x1400f47eb
call fcn.1400ea6a0
test eax, eax
jne 0x1400f47eb
mov rcx, qword [0x1402896b0]
call fcn.1400f6500
test eax, eax
jne 0x1400f4660
mov eax, ebx
dec ebx
test eax, eax
jle 0x1400f4646
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rcx, qword [0x1402896b0]
call fcn.1400f6500
test eax, eax
je 0x1400f4623
test ebx, ebx
jg 0x1400f4660
lea rdx, str.Error:__Unable_to_connect_to_server._n
mov ecx, 3
call fcn.1400495d0
jmp 0x1400f47eb
mov eax, dword [0x1402878bc]
test eax, eax
jne 0x1400f46a8
cmp byte [rsp + 0x40], r15b
je 0x1400f46a8
mov rcx, qword [0x1402896b0]
lea rdx, [rsp + 0x40]
call fcn.1400f5570
mov rcx, qword [0x1402896b0]
lea rdx, [rsp + 0x40]
call fcn.1400ef700
mov eax, dword [0x1402878bc]
cmp dword [rsp + 0x38], r15d
cmovne eax, r14d
mov dword [0x1402878bc], eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400f4788
test eax, eax
jne 0x1400f4779
movabs rbx, 0x100000601
nop dword [rax + rax]
mov r9d, 0x200
lea r8, [rbp + 0x150]
lea rdx, str.____n_s
call fcn.1400f5210
cmp eax, r14d
jne 0x1400f4773
mov edx, 0x200
lea rcx, [rbp + 0x150]
call fcn.140130308
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400f4739
mov r8d, 3
lea rdx, [0x1401901d8]
lea rcx, [rbp + 0x150]
call fcn.140134acc
test eax, eax
jne 0x1400f4739
mov rax, qword [rbp + 0x153]
cmp al, 0x20
ja 0x1400f4739
bt rbx, rax
jb 0x1400f475f
mov rcx, qword [0x1402896b0]
lea rdx, [rbp + 0x150]
call fcn.1400f5570
mov rcx, qword [0x1402896b0]
lea rdx, [rbp + 0x150]
call fcn.1400ef700
mov eax, dword [0x1402878bc]
test eax, eax
jne 0x1400f4779
mov rcx, qword [rsp + 0x30]
jmp 0x1400f46d0
mov eax, dword [0x1402878bc]
cmp dword [rsp + 0x38], r15d
cmovne eax, r14d
mov dword [0x1402878bc], eax
mov r9, qword [0x1402896b0]
lea r8, [0x1400f3bf0]
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 0x1400f47d2
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.1400495d0
jmp 0x1400f47eb
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 0x1400f4849
mov dword [0x1402878bc], r14d
call fcn.1400f5670
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.1400ea650
mov rcx, qword [0x140289a80]
test rcx, rcx
je 0x1400f4867
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x140289a80], r15
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rbp + 0x140]
test rcx, rcx
je 0x1400f487c
call fcn.140147764
cmp ebx, 0x3ea
jne 0x1400f4889
call fcn.1400fbe60
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140106650
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret