Function at 0x14012bcc3
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
jmp 0x14016df70
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x140d145c0]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x140d4a129]
call fcn.140131470
nop
mov qword [rbp + 8], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.14012ef13
nop
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x34], 0
mov rcx, qword [rbp + 0x2b8]
call fcn.14012a1a7
movzx eax, al
test eax, eax
jne 0x14016e024
mov rcx, qword [rbp + 0x2b8]
call fcn.140128d2f
mov qword [rbp + 8], rax
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x28], 4
jmp 0x14016e059
mov rcx, qword [rbp + 0x2b0]
call fcn.14012a1a7
movzx eax, al
test eax, eax
jne 0x14016e047
mov rcx, qword [rbp + 0x2b0]
call fcn.140128d2f
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x2c8]
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2d0]
mov dword [rbp + 0x28], eax
mov edx, dword [rbp + 0x2c0]
lea rcx, [rbp + 0x98]
call fcn.140129013
nop
lea rcx, [rbp + 0x98]
call fcn.140128d2f
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x28]
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14016e0c1
mov qword [rbp + 0x238], 0xffffffffffffffff
lea rcx, [rbp + 0x98]
call fcn.140129b1c
nop
mov rcx, qword [rbp + 0x2e8]
call fcn.14012f0c1
mov rax, qword [rbp + 0x238]
jmp 0x14016e2f7
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0xd8], rax
jmp 0x14016e0e0
mov rax, qword [rbp + 0xd8]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
je 0x14016e2c1
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rbp + 0xd8]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0xd8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0xd8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x14016e163
mov rax, qword [rbp + 0xd8]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0xd8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0xd8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x14016e172
jmp 0x14016e0ce
movzx eax, byte [rbp + 0x2d8]
test eax, eax
je 0x14016e1af
mov dword [rbp + 0x114], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x114]
mov r8d, 1
mov edx, 6
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 4], 0x17
jne 0x14016e211
movzx eax, byte [rbp + 0x2e0]
test eax, eax
je 0x14016e1d3
mov dword [rbp + 0x284], 1
jmp 0x14016e1dd
mov dword [rbp + 0x284], 0
mov eax, dword [rbp + 0x284]
mov dword [rbp + 0x134], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x134]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rcx, qword [rbp + 0x2e8]
call fcn.140129e41
movzx eax, al
test eax, eax
je 0x14016e238
mov rdx, qword [rbp + 0xf8]
mov rcx, qword [rbp + 0x2e8]
call fcn.14012877b
nop
mov byte [rbp + 0x154], 0
lea r9, [rbp + 0x154]
mov r8, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xf8]
lea rcx, [rbp + 0x2f0]
call fcn.14012c461
movzx eax, al
test eax, eax
je 0x14016e2a2
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x258], rax
lea rcx, [rbp + 0x98]
call fcn.140129b1c
nop
mov rcx, qword [rbp + 0x2e8]
call fcn.14012f0c1
mov rax, qword [rbp + 0x258]
jmp 0x14016e2f7
mov rcx, qword [rbp + 0xf8]
call fcn.14012de42
nop
movzx eax, byte [rbp + 0x154]
test eax, eax
je 0x14016e2bc
jmp 0x14016e2c1
jmp 0x14016e0ce
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov qword [rbp + 0x278], 0xffffffffffffffff
lea rcx, [rbp + 0x98]
call fcn.140129b1c
nop
mov rcx, qword [rbp + 0x2e8]
call fcn.14012f0c1
mov rax, qword [rbp + 0x278]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_getsockname
call fcn.14012fad5
mov rax, rdi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.14012c6c3
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret