Function at 0x180012830
Capabilities:
Convert ip address from string
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa0], rax
cmp byte [rcx], 0x2a
movzx r14d, dx
mov edx, 1
mov qword [rsp + 0x40], 0
sete bl
mov dword [rsp + 0x48], edx
xor eax, eax
mov rsi, r8
cmp byte [rcx], 0x2a
lea r8, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov eax, 8
cmove eax, edx
mov dword [rsp + 0x58], edx
mov rdx, rcx
mov dword [rsp + 0x50], eax
mov ecx, 2
mov dword [rsp + 0x54], 0
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800128d5
mov dword [rsp + 0x54], 2
jmp 0x1800128f4
lea r8, [rbp - 0x80]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800128fd
mov dword [rsp + 0x54], reloc.WS2_32.dll_socket
test bl, bl
jne 0x1800128fd
or dword [rsp + 0x50], 4
movzx r9d, r14w
lea r8, [0x18003c2a0]
mov edx, 7
lea rcx, [rbp - 0x70]
call qword [0x18002f590]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
test bl, bl
jne 0x18001292e
mov rcx, rdi
jmp 0x180012930
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1800129f5
mov qword [rsp + 0x30], 0
lea rbx, [0x180045d20]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rcx, rbx
call qword [0x18002f798]
mov r9, rdi
lea r8, str.Host__s_not_found.__s
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov edx, 0x100
call qword [0x18002f590]
movsxd rcx, eax
cmp rcx, 0x100
jae 0x180012ae7
mov byte [rbp + rcx - 0x60], 0
call qword [0x18002f7b8]
lea rcx, [rbp - 0x60]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rcx + r8], 0
jne 0x1800129c0
mov ecx, dword [0x180045d10]
dec ecx
movsxd rdx, ecx
mov rcx, qword [rax]
mov r9, qword [rcx + rdx*8]
lea rdx, [rbp - 0x60]
mov ecx, dword [r9 + 0x500]
call qword [0x18002f2f0]
or eax, 0xffffffff
jmp 0x180012aca
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp eax, 0xffffffff
jne 0x180012a75
lea rdx, str.Unable_to_create_socket
lea rcx, [rbp - 0x60]
call qword [0x18002f720]
movsxd rcx, eax
cmp rcx, 0x80
jae 0x180012aed
mov byte [rbp + rcx - 0x60], 0
call qword [0x18002f7b8]
mov rdx, rax
or r8, 0xffffffffffffffff
lea rax, [rbp - 0x60]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180012a50
mov eax, dword [0x180045d10]
dec eax
movsxd rcx, eax
mov rax, qword [rdx]
lea rdx, [rbp - 0x60]
mov r9, qword [rax + rcx*8]
jmp 0x1800129e0
movsxd rdi, ebx
lea r9, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180012aad
test ebx, ebx
js 0x180012ac8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180012ac8
mov rax, qword [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.18002d840
add rsp, 0x1b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18002d974
int3
call fcn.18002d974
int3