Function at 0x140014170
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x140048028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x138], 1
mov dword [rsp + 0x13c], 0
mov rax, qword [rsp + 0x188]
cmp qword [rax + 0x10], 0
jne 0x1400141f5
mov dword [rsp + 0x48], 1
jmp 0x1400141fd
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400142c1
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x18], 0x10
jb 0x14001424c
mov dword [rsp + 0x4c], 1
jmp 0x140014254
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140014289
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x134], 0
mov dword [rsp + 0x130], 4
jmp 0x14001439b
mov rax, qword [rsp + 0x180]
cmp qword [rax + 0x10], 0
jne 0x1400142da
mov dword [rsp + 0x50], 1
jmp 0x1400142e2
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
jne 0x14001437f
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 0x10
jb 0x140014328
mov dword [rsp + 0x54], 1
jmp 0x140014330
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x33]
test eax, eax
je 0x140014362
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x134], eax
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x130], eax
mov edx, dword [rsp + 0x190]
lea rcx, [rsp + 0x110]
call fcn.1400017d0
nop
lea rax, [rsp + 0x110]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0x10
jb 0x1400143e0
mov dword [rsp + 0x58], 1
jmp 0x1400143e8
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x14001441a
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
lea r9, [rsp + 0x100]
lea r8, [rsp + 0x130]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400144a5
mov qword [rsp + 0xe0], 0xffffffffffffffff
lea rcx, [rsp + 0x110]
call fcn.140010aa0
lea rax, [rsp + 0x110]
mov rcx, rax
call fcn.140002310
nop
mov rcx, qword [rsp + 0x1b0]
call fcn.140001ee0
mov rax, qword [rsp + 0xe0]
jmp 0x140014703
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x38], rax
jmp 0x1400144c2
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400146b6
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140014531
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14001453e
jmp 0x1400144b4
movzx eax, byte [rsp + 0x1a8]
test eax, eax
je 0x14001457b
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x108]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 8
imul rax, rax, 7
mov rcx, qword [rsp + 0x1b0]
mov rax, qword [rcx + rax]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x1400145ad
mov dword [rsp + 0x5c], 1
jmp 0x1400145b5
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x35]
test eax, eax
jne 0x1400145d1
mov dword [rsp + 0x60], 1
jmp 0x1400145d9
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x36], al
movzx eax, byte [rsp + 0x36]
test eax, eax
je 0x1400145fd
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1b0]
call fcn.14001b700
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 0x17
jne 0x140014639
mov dword [rsp + 0x10c], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x10c]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1b8]
call fcn.140002ee0
movzx eax, al
test eax, eax
je 0x1400146a7
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x110]
call fcn.140010aa0
lea rax, [rsp + 0x110]
mov rcx, rax
call fcn.140002310
nop
mov rcx, qword [rsp + 0x1b0]
call fcn.140001ee0
mov rax, qword [rsp + 0xf0]
jmp 0x140014703
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_closesocket
jmp 0x1400144b4
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rsp + 0xf8], 0xffffffffffffffff
lea rcx, [rsp + 0x110]
call fcn.140010aa0
lea rax, [rsp + 0x110]
mov rcx, rax
call fcn.140002310
nop
mov rcx, qword [rsp + 0x1b0]
call fcn.140001ee0
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003a630
add rsp, 0x170
pop rdi
ret