Function at 0x14006e140
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x1b8
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbp, qword [0x140400720]
mov r14d, r9d
mov dword [rsp + 0x50], edx
mov rdi, r8
mov rbx, rcx
cmp edx, r9d
je 0x14006e182
mov eax, 0xffffffff
jmp 0x14006e3d7
cmp word [r8], 2
jne 0x14006e3cd
mov r8d, edx
mov rdx, rdi
call fcn.140063db0
cmp dword [rbp + 0x78], 0
je 0x14006e1bd
mov eax, dword [rbp + 0x78]
mov byte [rbx + 7], al
shr eax, 8
mov byte [rbx + 6], al
shr eax, 8
mov byte [rbx + 5], al
shr eax, 8
mov byte [rbx + 4], al
xor eax, eax
jmp 0x14006e3d7
mov edx, 2
mov qword [rsp + 0x1b0], rsi
mov ecx, edx
mov dword [rbx + 4], 0
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006e3c1
cmp dword [rbp + 0x70], 0x200
jl 0x14006e2aa
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x90]
call fcn.140063da0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], 0
mov r9d, r14d
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rax, [rsp + 0x90]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov edx, 0xc8000014
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jns 0x14006e259
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14006e270
lea rcx, [rbx + 4]
mov r8d, 4
lea rdx, [rsp + 0x94]
call fcn.140063db0
movzx eax, byte [rbx + 5]
movzx ecx, byte [rbx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 7]
shl ecx, 8
or ecx, eax
cmp ecx, 0x7f000001
jne 0x14006e2aa
lea rdx, [rdi + 4]
mov r8d, 4
lea rcx, [rbx + 4]
call fcn.140063db0
movzx eax, byte [rbx + 5]
movzx ecx, byte [rbx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 7]
shl ecx, 8
or ecx, eax
jne 0x14006e30d
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14006e30d
lea r8, [rsp + 0x50]
mov rcx, rsi
lea rdx, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14006e30d
lea rcx, [rbx + 4]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x94]
call fcn.140063db0
movzx eax, byte [rbx + 5]
movzx ecx, byte [rbx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 7]
shl ecx, 8
or ecx, eax
jne 0x14006e3b8
lea edx, [rcx + 0x30]
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
call fcn.140063da0
mov edx, 0x100
mov dword [rsp + 0x64], 2
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x6c], 6
call qword [sym.imp.WS2_32.dll_gethostname]
lea r9, [rsp + 0x58]
xor edx, edx
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14006e3ad
mov rax, qword [rsp + 0x58]
lea rcx, [rbx + 4]
mov r8d, 4
mov rdx, qword [rax + 0x20]
add rdx, 4
call fcn.140063db0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsp + 0x1b0]
xor eax, eax
jmp 0x14006e3d7
call fcn.140063da0
mov eax, 0xfffffffd
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x1b8
pop r14
pop rdi
pop rbp
pop rbx
ret