Function at 0x140002c80
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 [0x14007c040]
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.0x14005c177.1]
mov qword [rbp + 0xe18], rax
mov rsi, rax
mov r15d, listen
test rax, rax
je 0x140002e35
xor r14d, r14d
mov dword [rbp + 0xe28], r12d
mov dword [rbp + 0xe2c], r14d
lea rdi, [rax + 0x20]
mov qword [rbp + 0xe10], r14
mov rcx, rdi
mov byte [rbp + 0xe30], 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]
lea ecx, [r15 + 0x1c]
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 0x140002da0
xor edx, edx
lea r8d, [r15 - 0xb]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea r9, [rdi + 0x98]
call fcn.140050c10
test eax, eax
jns 0x140002e6b
mov qword [rdi + 0x98], 0xffffffffffffffff
mov qword [rdi + 0xa0], 0xffffffffffffffff
mov rcx, qword [rdi + 0x98]
cmp rcx, 0xffffffffffffffff
je 0x140002dbe
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x98], 0xffffffffffffffff
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x140002dd7
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x78]
call qword [0x14007c4b8]
mov rcx, qword [rdi + 0x88]
call qword [0x14007c4b8]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140002e02
mov rbx, qword [rcx + 0x28]
call qword [0x14007c4b8]
mov rcx, rbx
test rbx, rbx
jne 0x140002df0
mov rcx, qword [rdi + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x140002e15
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 + 0xe18], r14
call qword [0x14007c4b8]
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.140065250
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.0x14005c177.0]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x140002da0
mov rcx, qword [rbp + 0xe08]
call qword [0x14007c4b8]
mov rcx, rbx
call qword [case.0x14005c177.0]
mov qword [rbp + 0xe08], rax
test rax, rax
je 0x140003049
cmp byte [0x14007eb18], r14b
mov dword [rsi + 0xa0], r14d
je 0x140002fff
cmp qword [0x14007ea70], r14
je 0x140002fff
cmp qword [0x14007ea80], r14
je 0x140002fff
cmp qword [0x14007ea78], r14
je 0x140002fff
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov r8, rbx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [rax - 1]
cmp edx, 0xfe
ja 0x140002fff
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 0x140002fff
mov r9d, r12d
lea r8, [0x1400679dc]
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.140002580
mov eax, dword [r13 + 4]
xor r9d, r9d
mov dword [rsi + 0x54], eax
xor r8d, r8d
mov eax, dword [r13 + 8]
xor ecx, ecx
mov dword [rsi + 0x58], eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], rax
test rax, rax
jne 0x140002f9e
mov dword [rsi + 0xa0], 1
jmp 0x140003049
lea rax, [rsi + 0x48]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x40]
lea rax, [fcn.140002780]
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 [0x14007ea78]
cmp eax, 0x3e5
je 0x14000302b
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.140002780
mov al, 1
jmp 0x140002e40
mov qword [rsp + 0x28], r14
lea r8, [0x140002a20]
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 0x140003032
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140002e40
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 + 0xe18]
test rdi, rdi
je 0x140003130
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 0x1400030b4
test rax, rax
je 0x1400030a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003119
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003119
test rax, rax
je 0x1400030da
lea rcx, [rdi + 0x48]
call qword [0x14007ea80]
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 0x140003103
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.1400025e0
mov rcx, qword [rbp + 0xe18]
call qword [0x14007c4b8]
mov rdx, rsi
mov rcx, r14
call fcn.14003f4a0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor r14d, r14d
mov rcx, qword [rbp + 0xe08]
mov qword [rbp + 0xe18], r14
call qword [0x14007c4b8]
mov qword [rbp + 0xe08], r14
jmp 0x140002e35