Function at 0x14006bf20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
je 0x14006c204
test rdx, rdx
je 0x14006c204
cmp dword [rcx], 0
ja 0x14006c204
mov eax, dword [rcx + 4]
dec eax
cmp eax, 1
ja 0x14006c204
mov rax, qword [rcx + 8]
test rax, rax
je 0x14006c204
cmp byte [rax], 0
je 0x14006c204
mov qword [rsp + 0x40], rbx
mov edx, 0x500
mov ecx, 1
mov qword [rsp + 0x48], rdi
call fcn.140074c18
mov rbx, rax
test rax, rax
jne 0x14006bfb7
lea eax, [rbx - 8]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
mov eax, dword [rsi + 0x10]
mov dword [rbx + 4], eax
mov eax, dword [rsi + 0x14]
mov dword [rbx + 8], eax
mov ecx, dword [rsi + 0x1c]
mov dword [rbx + 0x10], ecx
mov eax, dword [rsi + 0x18]
mov dword [rbx + 0xc], eax
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x18], rax
mov eax, dword [rsi + 4]
mov dword [rbx], eax
mov rax, qword [rsi + 0x40]
mov qword [rbx + 0x30], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0x38], rax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x40], rax
mov rax, qword [rsi + 0x58]
mov qword [rbx + 0x48], rax
mov rax, qword [rsi + 0x60]
mov qword [rbx + 0x50], rax
mov rax, qword [rsi + 0x68]
mov qword [rbx + 0x58], rax
test ecx, ecx
je 0x14006c01c
mov eax, ecx
shr eax, 2
and eax, 0x49
or eax, ecx
jmp 0x14006c028
mov dword [rbx + 0x10], 0x1a4
mov eax, 0x1ed
mov dword [rbx + 0x14], eax
lea rcx, [rbx + 0x100]
mov rdx, qword [rsi + 8]
mov r8d, 0x400
call fcn.1400498e0
mov dword [rbx + 0xf4], eax
cmp eax, 0x3ff
jl 0x14006c05e
mov edi, 0xffffff91
mov dword [rbx + 0x88], edi
jmp 0x14006c1d0
cmp eax, 1
jle 0x14006c096
movsxd rcx, eax
cmp byte [rcx + rbx + 0xff], 0x2f
je 0x14006c096
mov byte [rcx + rbx + 0x100], gethostbyname
movsxd rcx, dword [rbx + 0xf4]
lea eax, [rcx + 1]
mov dword [rbx + 0xf4], eax
mov byte [rcx + rbx + 0x101], 0
mov eax, dword [rbx + 0xf4]
xor edx, edx
mov dword [rbx + 0xf8], eax
mov rcx, rbx
mov dword [rbx + 0xfc], eax
call fcn.14006e760
mov edi, eax
test eax, eax
jns 0x14006c0bd
mov dword [rbx + 0x88], eax
jmp 0x14006c1d0
cmp eax, 1
je 0x14006c0d2
mov edi, 0xfffffef5
mov dword [rbx + 0x88], edi
jmp 0x14006c1d0
cmp qword [rbx + 0x50], 0
mov rax, qword [rsi + 0x30]
mov ecx, dword [rbx]
mov qword [rbx + 0x20], rax
mov rax, qword [rsi + 0x38]
mov qword [rbx + 0x28], rax
mov eax, 5
lea r8d, [rax - 3]
je 0x14006c101
cmp ecx, 1
cmovne r8d, eax
or r8d, dword [rsi + 0x24]
jmp 0x14006c10b
cmp ecx, 1
cmove eax, r8d
mov r8d, eax
mov ecx, dword [rsi + 0x20]
lea rax, [0x14006c260]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.140049970
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x14006c13d
mov edi, 0xfffffff8
mov dword [rbx + 0x88], edi
jmp 0x14006c1d0
lea rcx, [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x14006c178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
neg edi
mov dword [rbx + 0x88], edi
jmp 0x14006c1d0
mov qword [rsp + 0x28], 0
lea r8, [0x14006c500]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov dword [rbx + 0x88], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xb8], rax
test rax, rax
jne 0x14006c1f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
neg edi
mov dword [rbx + 0x88], edi
mov rcx, qword [rbx + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14006c1de
call fcn.140049bc0
mov rcx, rbx
mov dword [rbx], 0
call fcn.1400733f0
mov eax, edi
jmp 0x14006bf9c
mov qword [r14], rbx
mov rax, qword [rbx + 0x60]
mov qword [r15], rax
xor eax, eax
jmp 0x14006bf9c
mov rsi, qword [rsp + 0x50]
mov eax, 0xffffffa9
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret