Function at 0x14011c620
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rbp, rcx
mov edx, 0x110
mov ecx, 1
mov r13, r9
mov r12d, r8d
call qword [case.0x14015e1a2.3]
mov qword [rbp + 0xd98], rax
mov rsi, rax
mov r15d, ntohs
test rax, rax
je 0x14011c7d8
xor r14d, r14d
mov dword [rbp + 0xda8], r12d
mov dword [rbp + 0xdac], r14d
lea rdi, [rax + 0x20]
mov qword [rbp + 0xd90], r14
mov rcx, rdi
mov byte [rbp + 0xdb0], 0
xor edx, edx
mov r8d, 0xf0
mov qword [rax + 8], r14
mov qword [rax], r14
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [r13]
mov ecx, Ordinal_41
mov qword [rdi + 0xe8], rsi
movups xmm1, xmmword [r13 + 0x10]
mov dword [rdi + 0x84], r12d
movups xmmword [rdi + 0xb8], xmm0
mov dword [rdi + 0x80], 1
movups xmm0, xmmword [r13 + 0x20]
movups xmmword [rdi + 0xc8], xmm1
movups xmmword [rdi + 0xd8], xmm0
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x78], rax
test rax, rax
je 0x14011c743
xor edx, edx
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea r9, [rdi + 0x98]
call fcn.14015fac0
test eax, eax
jns 0x14011c80e
mov qword [rdi + 0x98], 0xffffffffffffffff
mov qword [rdi + 0xa0], 0xffffffffffffffff
mov rcx, qword [rdi + 0x98]
cmp rcx, 0xffffffffffffffff
je 0x14011c761
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x98], 0xffffffffffffffff
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x14011c77a
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x78]
call qword [fcn.14016f1de]
mov rcx, qword [rdi + 0x88]
call qword [fcn.14016f1de]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x14011c7a5
mov rbx, qword [rcx + 0x28]
call qword [fcn.14016f1de]
mov rcx, rbx
test rbx, rbx
jne 0x14011c793
mov rcx, qword [rdi + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x14011c7b8
call qword [sym.imp.WS2_32.dll_closesocket]
xor edx, edx
mov r8d, 0xf0
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
mov qword [rbp + 0xd98], r14
call qword [fcn.14016f1de]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r15d
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
mov dword [rdi + 0xa8], r14d
call qword [case.0x140114cc7.0]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x14011c743
mov rcx, qword [rbp + 0xd88]
call qword [fcn.14016f1de]
mov rcx, rbx
call qword [case.0x140114cc7.0]
mov qword [rbp + 0xd88], rax
test rax, rax
je 0x14011c9ee
cmp byte [0x1402df140], r14b
mov dword [rsi + 0xa0], r14d
je 0x14011c9a4
cmp qword [0x1402de860], r14
je 0x14011c9a4
cmp qword [0x1402de870], r14
je 0x14011c9a4
cmp qword [0x1402de868], r14
je 0x14011c9a4
mov dword [rsp + 0x28], r14d
mov r9d, 0xffffffff
mov r8, rbx
mov qword [rsp + 0x20], r14
mov edx, 8
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [rax - 1]
cmp edx, 0xfe
ja 0x14011c9a4
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
lea rax, [rsp + 0x60]
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
cmp eax, 0xfe
ja 0x14011c9a4
mov r9d, r12d
lea r8, [0x1402acc6c]
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.14011be00
mov eax, dword [r13 + 4]
xor r9d, r9d
mov dword [rsi + 0x54], eax
xor r8d, r8d
mov eax, dword [r13 + 8]
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x58], eax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], rax
test rax, rax
jne 0x14011c943
mov dword [rsi + 0xa0], 1
jmp 0x14011c9ee
lea rax, [rsi + 0x48]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x40]
lea rax, [fcn.14011c000]
mov r8d, r15d
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 0x50]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x50]
call qword [0x1402de868]
cmp eax, 0x3e5
je 0x14011c9d0
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.14011c000
mov al, 1
jmp 0x14011c7e3
mov qword [rsp + 0x28], r14
lea r8, [0x14011c3c0]
mov r9, rdi
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14011c9d7
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14011c7e3
mov qword [rsi + 8], r14
mov dword [rsi + 0xa0], 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15d, dword [rax]
mov rdi, qword [rbp + 0xd98]
test rdi, rdi
je 0x14011cad5
mov rcx, qword [rdi + 0x98]
mov rsi, qword [rdi + 0xb8]
mov r14, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rdi + 0xa0]
mov rcx, qword [rdi + 0x98]
mov dword [rdi + 0xa0], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
test ebx, ebx
jne 0x14011ca59
test rax, rax
je 0x14011ca4d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14011cabe
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14011cabe
test rax, rax
je 0x14011ca7f
lea rcx, [rdi + 0x48]
call qword [0x1402de870]
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14011caa8
xor r8d, r8d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0
lea rcx, [rdi + 0x20]
call fcn.14011be60
mov rcx, qword [rbp + 0xd98]
call qword [fcn.14016f1de]
mov rdx, rsi
mov rcx, r14
call fcn.14010acb0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor r14d, r14d
mov rcx, qword [rbp + 0xd88]
mov qword [rbp + 0xd98], r14
call qword [fcn.14016f1de]
mov qword [rbp + 0xd88], r14
jmp 0x14011c7d8