Function at 0x1400e2f90
Capabilities:
Create thread
Set socket configuration
Terminate thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x220], 0
jne 0x1400e2ff5
mov r9d, 1
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1400e29c0
jmp 0x1400e3267
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x98], eax
jne 0x1400e3016
mov eax, 1
jmp 0x1400e3267
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x208], 0xffffffffffffffff
je 0x1400e306a
mov edx, 2
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WSOCK32.dll_shutdown]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x208], 0xffffffffffffffff
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x218], 0
je 0x1400e30f4
mov rdx, qword [rsp + 0x90]
add rdx, 0x218
mov dword [rsp + 0x20], 0x4bf
mov r9d, 0x7d0
mov r8d, 1
mov ecx, 1
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400e30cc
xor edx, edx
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x218], 0
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WSOCK32.dll_socket]
mov r11, rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x208], r11
mov eax, 2
mov word [rsp + 0x40], ax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.140002e10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140002ec0
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x58]
call fcn.140002ea0
movzx ecx, word [rsp + 0x98]
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x1400e31e5
mov edx, 2
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WSOCK32.dll_shutdown]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x208], 0xffffffffffffffff
xor eax, eax
jmp 0x1400e3267
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x220], 1
mov rcx, qword [rsp + 0x90]
mov eax, dword [rsp + 0x98]
mov dword [rcx + 0x210], eax
mov rcx, qword [rsp + 0x90]
add rcx, 8
mov rdx, qword [rsp + 0xa0]
call fcn.1400a99dc
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
lea r8, [0x14004e1b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x218], r11
mov eax, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x88
ret