Function at 0x1400157d0
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 0x140015c97
mov dword [rsp + 0x3c], 0
jmp 0x14001582e
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 0x140015c92
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov edx, dword [rsp + 0xe8]
cmp dword [rcx + rax], edx
jne 0x140015c8d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
cmp qword [rcx + rax + 0x10], 0
jne 0x140015a5d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
cmp qword [rcx + rax + 8], 0
je 0x1400158c6
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
cmp qword [rcx + rax + 0x10], 0
je 0x140015912
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rcx, qword [rcx + rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
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 0x140015a0d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x3c]
imul rcx, rcx, 0x28
lea rdx, [0x14008ddc0]
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 0x140015a02
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rdx, qword [rsp + 0x48]
mov qword [rcx + rax + 0x10], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
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 0x1400159f7
mov eax, 1
jmp 0x140016248
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, [0x14008ddc0]
mov qword [rcx + rax + 0x20], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov qword [rcx + rax + 0x10], 0
jmp 0x140015c8d
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
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 0x140015a93
cmp dword [rsp + 0x34], 0x102
je 0x140015c73
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
cmp qword [rcx + rax + 8], 0
je 0x140015adf
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
cmp qword [rcx + rax + 0x10], 0
je 0x140015b2b
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rcx, qword [rcx + rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
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 0x140015c26
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x3c]
imul rcx, rcx, 0x28
lea rdx, [0x14008ddc0]
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 0x140015c1b
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x10], rdx
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
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 0x140015c10
mov eax, 1
jmp 0x140016248
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, [0x14008ddc0]
mov qword [rcx + rax + 0x20], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x28
lea rcx, [0x14008ddc0]
mov qword [rcx + rax + 0x10], 0
jmp 0x140015c8d
cmp dword [rsp + 0x34], 0x102
jne 0x140015c7f
jmp 0x140015c8d
cmp dword [rsp + 0x34], 0xffffffff
jne 0x140015c8d
xor eax, eax
jmp 0x140016248
jmp 0x140015824
jmp 0x140016246
mov qword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x30]
call fcn.14000d2a0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140015d3a
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 0x140015d33
mov dword [rsp + 0x74], 2
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x74]
mov rcx, qword [rsp + 0xe0]
call fcn.1400164e0
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x140016248
xor eax, eax
jmp 0x140016248
movzx edx, word [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140014310
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140015dda
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 0x140015dd3
mov dword [rsp + 0x7c], 3
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0xe0]
call fcn.1400164e0
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x140016248
xor eax, eax
jmp 0x140016248
mov dword [rsp + 0x80], 0
jmp 0x140015df7
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x14
jge 0x140016246
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0xb04
lea rcx, reloc.WS2_32.dll_htonl
mov edx, dword [rsp + 0x30]
cmp dword [rcx + rax], edx
jne 0x140016241
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0xb04
lea rcx, reloc.WS2_32.dll_htonl
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x30], 0xd
jne 0x140015e87
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
call fcn.140016260
cmp eax, 1
jne 0x140015e80
mov eax, 1
jmp 0x140016248
xor eax, eax
jmp 0x140016248
mov rax, qword [rsp + 0x88]
add rax, 0x14
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], 0
jmp 0x140015eb8
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0x64
jge 0x140016241
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 0x14001623c
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 0x14001608d
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 4], 0
je 0x140015f4d
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 0x140015f7e
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 0x140016058
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 0x14001604a
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 0x14001603c
mov eax, 1
jmp 0x140016248
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 0x14001623c
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 0x1400160ba
cmp dword [rsp + 0x34], 0x102
je 0x140016225
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 4], 0
je 0x1400160eb
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 0x14001611c
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 0x1400161f3
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 0x1400161e5
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 0x1400161d7
mov eax, 1
jmp 0x140016248
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 0x14001623c
cmp dword [rsp + 0x34], 0x102
jne 0x140016231
jmp 0x14001623c
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14001623c
xor eax, eax
jmp 0x140016248
jmp 0x140015ea8
jmp 0x140015de7
xor eax, eax
add rsp, 0xd8
ret