Function at 0x1400141a0
Capabilities:
Create thread
Resolve function by parsing pe exports
Resume thread
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov eax, dword [rsp + 0xe8]
shr eax, 0x10
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xe8]
and eax, 0xffff
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xe8]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
test eax, eax
jne 0x140014667
mov dword [rsp + 0x3c], 0
jmp 0x1400141fe
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [reloc.WS2_32.dll_htons]
cmp dword [rsp + 0x3c], eax
jge 0x140014662
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov edx, dword [rsp + 0xe8]
cmp dword [rcx + rax], edx
jne 0x14001465d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
cmp qword [rcx + rax + 0x10], 0
jne 0x14001442d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
cmp qword [rcx + rax + 8], 0
je 0x140014296
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
cmp qword [rcx + rax + 0x10], 0
je 0x1400142e2
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rcx, qword [rcx + rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 0x10], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400143dd
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x3c]
imul rcx, rcx, 0x28
lea rdx, [0x14003ddc0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8, qword [rdx + rcx + 0x18]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400143d2
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rdx, qword [rsp + 0x48]
mov qword [rcx + rax + 0x10], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rdx, qword [rsp + 0xe0]
mov qword [rcx + rax + 0x20], rdx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400143c7
mov eax, 1
jmp 0x140014c18
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 0x20], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 0x10], 0
jmp 0x14001465d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
xor edx, edx
mov rcx, qword [rcx + rax + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140014463
cmp dword [rsp + 0x34], 0x102
je 0x140014643
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
cmp qword [rcx + rax + 8], 0
je 0x1400144af
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
cmp qword [rcx + rax + 0x10], 0
je 0x1400144fb
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rcx, qword [rcx + rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 0x10], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400145f6
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x3c]
imul rcx, rcx, 0x28
lea rdx, [0x14003ddc0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8, qword [rdx + rcx + 0x18]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400145eb
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x10], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov rdx, qword [rsp + 0xe0]
mov qword [rcx + rax + 0x20], rdx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400145e0
mov eax, 1
jmp 0x140014c18
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 0x20], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14003ddc0]
mov qword [rcx + rax + 0x10], 0
jmp 0x14001465d
cmp dword [rsp + 0x34], 0x102
jne 0x14001464f
jmp 0x14001465d
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14001465d
xor eax, eax
jmp 0x140014c18
jmp 0x1400141f4
jmp 0x140014c16
mov qword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x30]
call fcn.14000d290
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14001470a
mov eax, 1
mov word [rsp + 0x70], ax
mov eax, 5
mov word [rsp + 0x72], ax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
mov r8d, 0x80
mov edx, 0xffff
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140014703
mov dword [rsp + 0x74], 2
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x74]
mov rcx, qword [rsp + 0xe0]
call fcn.140014eb0
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x140014c18
xor eax, eax
jmp 0x140014c18
movzx edx, word [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140012e30
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400147aa
mov eax, 1
mov word [rsp + 0x78], ax
mov eax, 5
mov word [rsp + 0x7a], ax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x78]
mov r8d, 0x80
mov edx, 0xffff
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400147a3
mov dword [rsp + 0x7c], 3
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0xe0]
call fcn.140014eb0
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x140014c18
xor eax, eax
jmp 0x140014c18
mov dword [rsp + 0x80], 0
jmp 0x1400147c7
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x14
jge 0x140014c16
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0xb04
lea rcx, [0x14002c280]
mov edx, dword [rsp + 0x30]
cmp dword [rcx + rax], edx
jne 0x140014c11
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0xb04
lea rcx, [0x14002c280]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x30], 0xd
jne 0x140014857
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
call fcn.140014c30
cmp eax, 1
jne 0x140014850
mov eax, 1
jmp 0x140014c18
xor eax, eax
jmp 0x140014c18
mov rax, qword [rsp + 0x88]
add rax, 0x14
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], 0
jmp 0x140014888
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0x64
jge 0x140014c11
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x1c
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0x38]
cmp dword [rcx + rax], edx
jne 0x140014c0c
movsxd rax, dword [rsp + 0x98]
imul rax, rax, 0x1c
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xc], 0
jne 0x140014a5d
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 4], 0
je 0x14001491d
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 4]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax + 4], 0
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xc], 0
je 0x14001494e
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0xc], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x140014a28
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x68]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x140014a1a
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 4], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0xc], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x14], rcx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140014a0c
mov eax, 1
jmp 0x140014c18
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x14], 0
mov rax, qword [rsp + 0xa0]
mov qword [rax + 4], 0
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0xc], 0
jmp 0x140014c0c
xor edx, edx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140014a8a
cmp dword [rsp + 0x34], 0x102
je 0x140014bf5
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 4], 0
je 0x140014abb
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 4]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax + 4], 0
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xc], 0
je 0x140014aec
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0xc], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x140014bc3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x68]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x140014bb5
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 4], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0xc], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x14], rcx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140014ba7
mov eax, 1
jmp 0x140014c18
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x14], 0
mov rax, qword [rsp + 0xa0]
mov qword [rax + 4], 0
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0xc], 0
jmp 0x140014c0c
cmp dword [rsp + 0x34], 0x102
jne 0x140014c01
jmp 0x140014c0c
cmp dword [rsp + 0x34], 0xffffffff
jne 0x140014c0c
xor eax, eax
jmp 0x140014c18
jmp 0x140014878
jmp 0x1400147b7
xor eax, eax
add rsp, 0xd8
ret