Function at 0x14011cba0
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 [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rbp, rcx
mov edx, 0x110
mov ecx, 1
mov r15, r9
mov r13d, r8d
call qword [case.0x140161b02.3]
mov qword [rbp + 0xd38], rax
mov rsi, rax
mov r12d, listen
test rax, rax
je 0x14011cd57
xor r14d, r14d
mov dword [rbp + 0xd48], r13d
mov dword [rbp + 0xd4c], r14d
lea rdi, [rax + 0x20]
mov qword [rbp + 0xd30], r14
mov rcx, rdi
mov byte [rbp + 0xd50], 0
xor edx, edx
mov r8d, 0xf0
mov qword [rax + 8], r14
mov qword [rax], r14
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [r15]
mov ecx, Ordinal_41
mov qword [rdi + 0xe8], rsi
movups xmm1, xmmword [r15 + 0x10]
mov dword [rdi + 0x84], r13d
movups xmmword [rdi + 0xb8], xmm0
mov dword [rdi + 0x80], 1
movups xmm0, xmmword [r15 + 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 0x14011ccc2
xor edx, edx
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea r9, [rdi + 0x98]
call fcn.1401633d0
test eax, eax
jns 0x14011cd8d
mov qword [rdi + 0x98], 0xffffffffffffffff
mov qword [rdi + 0xa0], 0xffffffffffffffff
mov rcx, qword [rdi + 0x98]
cmp rcx, 0xffffffffffffffff
je 0x14011cce0
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x98], 0xffffffffffffffff
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x14011ccf9
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x78]
call qword [0x1402e1138]
mov rcx, qword [rdi + 0x88]
call qword [0x1402e1138]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x14011cd24
mov rbx, qword [rcx + 0x28]
call qword [0x1402e1138]
mov rcx, rbx
test rbx, rbx
jne 0x14011cd12
mov rcx, qword [rdi + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x14011cd37
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 + 0xd38], r14
call qword [0x1402e1138]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r12d
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140171bd0
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.0x140115757.0]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x14011ccc2
mov rcx, qword [rbp + 0xd28]
call qword [0x1402e1138]
mov rcx, rbx
call qword [case.0x140115757.0]
mov qword [rbp + 0xd28], rax
test rax, rax
je 0x14011cf91
cmp byte [0x1402e3f78], r14b
mov dword [rsi + 0xa0], r14d
je 0x14011ce31
cmp qword [0x1402e3680], r14
je 0x14011ce31
cmp qword [0x1402e3690], r14
je 0x14011ce31
cmp qword [0x1402e3688], r14
je 0x14011ce31
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x50]
mov edx, 8
mov rcx, rax
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x14011ce68
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], r14
lea r8, [0x14011c930]
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 0x14011cf7a
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14011cd62
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 0x14011ce31
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 0x14011ce31
mov r9d, r13d
lea r8, [0x1402b1568]
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.14011c370
mov eax, dword [r15 + 4]
xor r9d, r9d
mov dword [rsi + 0x54], eax
xor r8d, r8d
mov eax, dword [r15 + 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 0x14011cf15
mov dword [rsi + 0xa0], 1
jmp 0x14011cf91
lea rax, [rsi + 0x48]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x40]
lea rax, [fcn.14011c570]
mov r8d, r12d
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 [0x1402e3688]
cmp eax, 0x3e5
je 0x14011ce61
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.14011c570
mov al, 1
jmp 0x14011cd62
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 r12d, dword [rax]
mov rdi, qword [rbp + 0xd38]
test rdi, rdi
je 0x14011d09a
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 0x14011d012
test rax, rax
je 0x14011cff5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14011d083
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0
jmp 0x14011d083
test rax, rax
je 0x14011d03f
lea rcx, [rdi + 0x48]
call qword [0x1402e3690]
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 qword [rdi], 0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14011d06d
xor r8d, r8d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14011d065
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0
lea rcx, [rdi + 0x20]
call fcn.14011c3d0
mov rcx, qword [rbp + 0xd38]
call qword [0x1402e1138]
mov rdx, rsi
mov rcx, r14
call fcn.14010b730
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor r14d, r14d
mov rcx, qword [rbp + 0xd28]
mov qword [rbp + 0xd38], r14
call qword [0x1402e1138]
mov qword [rbp + 0xd28], r14
jmp 0x14011cd57