Function at 0x1400e3bd0
Capabilities:
Create thread
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 [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x220], 0
jne 0x1400e3c35
mov r9d, 1
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1400e3600
jmp 0x1400e3ea7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x210]
cmp dword [rsp + 0x98], eax
jne 0x1400e3c56
mov eax, 1
jmp 0x1400e3ea7
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x208], 0xffffffffffffffff
je 0x1400e3caa
mov edx, 2
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x208], 0xffffffffffffffff
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x218], 0
je 0x1400e3d34
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 0x1400e3d0c
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.WS2_32.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.140002d80
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140002e30
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x58]
call fcn.140002e10
movzx ecx, word [rsp + 0x98]
call qword [sym.imp.WS2_32.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.WS2_32.dll_bind]
test eax, eax
je 0x1400e3e25
mov edx, 2
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x208], 0xffffffffffffffff
xor eax, eax
jmp 0x1400e3ea7
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.1400a9460
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
lea r8, [0x14004f220]
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.1400a8040
add rsp, 0x88
ret