Function at 0x14029dbd0
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 [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbp, qword [0x14062e6a8]
mov r14d, r9d
mov dword [rsp + 0x50], edx
mov rdi, r8
mov rbx, rcx
cmp edx, r9d
je 0x14029dc12
mov eax, 0xffffffff
jmp 0x14029de61
cmp word [r8], 2
jne 0x14029de57
call fcn.140295280
cmp dword [rbp + 0x78], 0
je 0x14029dc47
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 0x14029de61
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 0x14029de4b
cmp dword [rbp + 0x70], 0x200
jl 0x14029dd34
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x90]
call fcn.140295260
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 0x14029dce3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14029dcfa
lea rcx, [rbx + 4]
mov r8d, 4
lea rdx, [rsp + 0x94]
call fcn.140295270
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 0x14029dd34
lea rdx, [rdi + 4]
mov r8d, 4
lea rcx, [rbx + 4]
call fcn.140295270
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 0x14029dd97
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14029dd97
lea r8, [rsp + 0x50]
mov rcx, rsi
lea rdx, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14029dd97
lea rcx, [rbx + 4]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x94]
call fcn.140295270
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 0x14029de42
lea edx, [rcx + 0x30]
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
call fcn.140295260
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 0x14029de37
mov rax, qword [rsp + 0x58]
lea rcx, [rbx + 4]
mov r8d, 4
mov rdx, qword [rax + 0x20]
add rdx, 4
call fcn.140295270
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 0x14029de61
call fcn.140295260
mov eax, 0xfffffffd
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140284180
add rsp, 0x1b8
pop r14
pop rdi
pop rbp
pop rbx
ret