Function at 0x1400f2e00
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x3e0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r12d, r9d
mov r13, r8
mov rdi, rdx
xor r8d, r8d
lea rdx, str.CBaseUtyMgr::ChangeStringToHostName
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
xor r14d, r14d
mov esi, r14d
mov qword [rsp + 0x78], recv
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x60], sil
test rdi, rdi
je 0x1400f31f6
test r13, r13
je 0x1400f31f6
mov r9, rdi
lea r8, str._t_t_tlpcInString___s
lea edx, [r14 + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
mov byte [rbp + 0x180], r14b
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x181]
call fcn.14024b970
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
or r15, 0xffffffffffffffff
mov r9d, r15d
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [r14 + 2]
lea rdx, [rbp - 0x20]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
lea rcx, [rbp + 0x180]
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rsp + 0x50], eax
lea edx, [r14 + 7]
lea rcx, [rsp + 0x40]
cmp eax, 0xffffffff
jne 0x1400f2f39
lea r8, str._t_t_tString_is_HOST_Name___
call fcn.140007780
lea rcx, [rbp + 0x180]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
jmp 0x1400f2f59
lea r8, str._t_t_tString_is_IP_Address___
call fcn.140007780
mov edx, 4
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x50]
call qword [sym.imp.WSOCK32.dll_gethostbyaddr]
test rax, rax
je 0x1400f31ee
mov rdx, qword [rax]
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140066f80
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400f3165
cmp rbx, 1
jb 0x1400f3165
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdi, qword [rsp + 0x60]
mov r8, rbx
mov edx, 0x2e
mov rcx, rdi
call fcn.140249870
mov rdx, rax
test rax, rax
je 0x1400f3165
cmp byte [rdx], 0x2e
je 0x1400f2ff3
sub rdi, rdx
lea rbx, [rbx + rdi - 1]
lea rdi, [rdx + 1]
mov r8, rbx
mov edx, 0x2e
mov rcx, rdi
call fcn.140249870
mov rdx, rax
test rax, rax
jne 0x1400f2fc5
jmp 0x1400f3165
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
sub rdx, rax
cmp edx, 0xffffffff
je 0x1400f3165
mov qword [rbp - 0x60], recv
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], 0
movsxd r8, edx
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400f4540
mov rdi, rax
lea rax, [rbp - 0x78]
cmp rax, rdi
je 0x1400f30a2
cmp qword [rbp - 0x60], 0x10
jb 0x1400f304d
mov rcx, qword [rbp - 0x78]
call fcn.1401026ec
mov qword [rbp - 0x60], recv
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], 0
cmp qword [rdi + 0x18], 0x10
jae 0x1400f3079
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140246c50
jmp 0x1400f3083
mov rax, qword [rdi]
mov qword [rbp - 0x78], rax
mov qword [rdi], r14
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x68], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x60], rax
mov qword [rdi + 0x18], recv
mov qword [rdi + 0x10], r14
mov byte [rdi], 0
cmp qword [rbp - 0x38], 0x10
jb 0x1400f30b2
mov rcx, qword [rbp - 0x50]
call fcn.1401026ec
mov rdi, qword [rbp - 0x68]
cmp rdi, 0xffffffffffffffff
cmova rdi, r15
cmp rdi, 0xfffffffffffffffe
jbe 0x1400f30d1
lea rcx, str.string_too_long
call fcn.14026624c
int3
cmp qword [rsp + 0x78], rdi
jae 0x1400f30ec
mov r8, qword [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140069100
jmp 0x1400f310a
test rdi, rdi
jne 0x1400f310d
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov byte [rax], dil
test rdi, rdi
setne al
test al, al
je 0x1400f3155
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rdi
call fcn.140246c50
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov byte [rax + rdi], 0
cmp qword [rbp - 0x60], 0x10
jb 0x1400f3165
mov rcx, qword [rbp - 0x78]
call fcn.1401026ec
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae r9, qword [rsp + 0x60]
lea r8, str._t_t_tOutput_HOST_Name_is__s
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
cmp r12, qword [rsp + 0x70]
jbe 0x1400f31c6
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdi, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
mov r9d, r15d
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x1400f31ee
mov r9d, r12d
lea r8, str._t_t_tlpHostName_size_is_short_dwHostNameMax___d_
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
mov esi, 0x80010001
mov dword [0x1403b95bc], 1
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x1400f3205
mov esi, 0x80010001
mov dword [0x1403b95bc], 1
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
cmp qword [rsp + 0x78], 0x10
jb 0x1400f3231
mov rcx, qword [rsp + 0x60]
call fcn.1401026ec
mov qword [rsp + 0x78], recv
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret