Function at 0x140101d60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov edx, Ordinal_145
mov ecx, 1
mov rbx, r9
mov r15d, r8d
call qword [case.0x1400f50d8.1]
mov qword [rsi + 0xe00], rax
mov r14, rax
mov r12d, listen
test rax, rax
je 0x140101f01
movups xmm1, xmmword [rbx + 0x10]
mov dword [rsi + 0xe10], r15d
lea ecx, [r12 + 0x1c]
mov byte [rsi + 0xe18], 0
xorps xmm0, xmm0
xor r13d, r13d
mov dword [rsi + 0xe14], r13d
mov qword [rsi + 0xdf8], r13
mov qword [rax], r13
movups xmmword [rax + 0x18], xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
movups xmmword [rax + 0x48], xmm0
mov qword [rax + 0x88], rax
movups xmm0, xmmword [rbx]
mov dword [rax + 0x24], r15d
mov dword [rax + 0x20], 1
movups xmmword [rax + 0x58], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x68], xmm1
movups xmmword [rax + 0x78], xmm0
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14 + 0x18], rax
test rax, rax
je 0x140101e54
xor edx, edx
lea r8d, [r12 - 0xb]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea r9, [r14 + 0x38]
call fcn.14013dbf0
test eax, eax
jns 0x140101f29
mov qword [r14 + 0x38], 0xffffffffffffffff
mov qword [r14 + 0x40], 0xffffffffffffffff
mov rcx, qword [r14 + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140101e6c
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r14 + 0x38], 0xffffffffffffffff
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140101e85
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [r14 + 0x18]
call qword [0x1402b30c8]
mov rcx, qword [r14 + 0x28]
call qword [0x1402b30c8]
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x140101eb2
nop dword [rax + rax]
mov rbx, qword [rcx + 0x28]
call qword [0x1402b30c8]
mov rcx, rbx
test rbx, rbx
jne 0x140101ea0
mov rcx, qword [r14 + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140101ec2
call qword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14 + 0x18], xmm0
mov rcx, r14
movups xmmword [r14 + 0x28], xmm0
movups xmmword [r14 + 0x38], xmm0
movups xmmword [r14 + 0x48], xmm0
movups xmmword [r14 + 0x58], xmm0
movups xmmword [r14 + 0x68], xmm0
movups xmmword [r14 + 0x78], xmm0
mov qword [r14 + 0x88], rax
mov qword [rsi + 0xe00], r13
call qword [0x1402b30c8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r12d
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rbp
mov dword [r14 + 0x48], r13d
call qword [case.0x1400f50d8.0]
mov qword [r14 + 0x28], rax
test rax, rax
je 0x140101e54
mov rcx, qword [rsi + 0xdf0]
call qword [0x1402b30c8]
mov rcx, rbp
call qword [case.0x1400f50d8.0]
mov qword [rsi + 0xdf0], rax
test rax, rax
je 0x140101fb0
mov qword [rsp + 0x28], r13
lea r9, [r14 + 0x18]
lea r8, [0x140101b70]
mov dword [rsp + 0x20], r13d
xor edx, edx
mov dword [r14 + 0x20], r13d
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 0x140101f9c
mov qword [r14], rax
mov al, 1
jmp 0x140101f0c
mov qword [r14], r13
mov dword [r14 + 0x20], 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12d, dword [rax]
mov rdi, qword [rsi + 0xe00]
test rdi, rdi
je 0x14010203a
mov rcx, qword [rdi + 0x18]
mov rbp, qword [rdi + 0x38]
mov r15, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov dword [rdi + 0x20], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
test ebx, ebx
jne 0x140101ff1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140102026
test rcx, rcx
je 0x140102010
xor r8d, r8d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r13
lea rcx, [rdi + 0x18]
call fcn.1401019c0
mov rcx, qword [rsi + 0xe00]
call qword [0x1402b30c8]
mov rdx, rbp
mov rcx, r15
call fcn.1400f1680
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 0xdf0]
mov qword [rsi + 0xe00], r13
call qword [0x1402b30c8]
mov qword [rsi + 0xdf0], r13
jmp 0x140101f01