Function at 0x1400dc310
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
call fcn.140002de0
nop
mov dword [rsp + 0x38], 0
mov eax, 1
mov word [rsp + 0x3c], ax
mov edx, 0x800
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
mov dword [rsp + 0x4c], 0
cmp dword [rsp + 0x4c], 0xffffffff
je 0x1400dc468
lea r9, [rsp + 0x4c]
lea r8, [0x14021b1a4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
call fcn.1400065a0
nop
lea rcx, [rsp + 0x58]
call fcn.140006eb0
movzx eax, al
test eax, eax
je 0x1400dc3d6
lea rcx, [rsp + 0x58]
call fcn.140001490
jmp 0x1400dc468
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140002db0
lea rcx, [rsp + 0x50]
call fcn.14000f8f0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002e10
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140002ec0
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov r11d, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
mov dword [rax + rcx*4 + 4], r11d
lea rcx, [rsp + 0x68]
call fcn.140002ea0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
add ecx, 1
mov rax, qword [rsp + 0x30]
mov dword [rax], ecx
lea rcx, [rsp + 0x58]
call fcn.140001490
jmp 0x1400dc38c
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
jne 0x1400dc4b4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x50]
call fcn.140001490
nop
mov rcx, qword [rsp + 0xb0]
call fcn.140001490
nop
mov rcx, qword [rsp + 0xb8]
call fcn.140001490
mov eax, dword [rsp + 0x70]
jmp 0x1400dc5cb
mov rcx, qword [rsp + 0xb0]
call fcn.14000f8f0
mov rcx, rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x30]
mov r8d, 0x1e8
movzx edx, word [rsp + 0x3c]
call sub.DNSAPI.dll_DnsQuery_W
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400dc553
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1400dc528
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x10]
cmp eax, 1
jne 0x1400dc519
jmp 0x1400dc528
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x1400dc501
cmp qword [rsp + 0x60], 0
je 0x1400dc53c
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x40], 0
je 0x1400dc553
mov edx, 1
mov rcx, qword [rsp + 0x40]
call sub.DNSAPI.dll_DnsFree
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x48], 0
jne 0x1400dc599
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x50]
call fcn.140001490
nop
mov rcx, qword [rsp + 0xb0]
call fcn.140001490
nop
mov rcx, qword [rsp + 0xb8]
call fcn.140001490
mov eax, dword [rsp + 0x74]
jmp 0x1400dc5cb
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x50]
call fcn.140001490
nop
mov rcx, qword [rsp + 0xb0]
call fcn.140001490
nop
mov rcx, qword [rsp + 0xb8]
call fcn.140001490
mov eax, dword [rsp + 0x78]
add rsp, 0xa8
ret