Function at 0x1400147d4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x320
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140076088]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdx
call fcn.14000de5c
mov rcx, rax
test rax, rax
je 0x140014add
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0x20]
cmp rdx, 0x10000
jae 0x140014851
movzx edx, dx
call fcn.14000e120
jmp 0x140014857
call fcn.140019694
nop
mov ecx, 2
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x14001490c
call fcn.14000de5c
mov rcx, rax
test rax, rax
je 0x140014ae8
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov r8d, ebx
lea rdx, str.Cant_find_Host_IP__WSAStarup_error__d
lea rcx, [rsp + 0x28]
call fcn.14001559c
xor r8d, r8d
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, rsi
call fcn.140014bc4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140019510
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400148e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140014904
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rdi
jmp 0x140014ab8
mov edx, 0x100
lea rcx, [rsp + 0x210]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x210]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400149d6
call fcn.14000de5c
mov rcx, rax
test rax, rax
je 0x140014af3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Cant_find_Host_IP__gethostbyname_failed.__Last_error__d
lea rcx, [rsp + 0x30]
call fcn.14001559c
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call fcn.140014bc4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140019510
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400149af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400149ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
jmp 0x140014ab8
movsx rbx, word [rax + 0x12]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax]
test rbx, rbx
je 0x140014a3c
test rsi, rsi
je 0x140014a04
cmp rbx, 4
ja 0x140014a04
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x64]
call fcn.140027990
jmp 0x140014a3c
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x64]
call fcn.140027e00
test rsi, rsi
jne 0x140014a26
call fcn.14002b2ac
mov dword [rax], 0x16
jmp 0x140014a37
cmp rbx, 4
jbe 0x140014a3c
call fcn.14002b2ac
mov dword [rax], 0x22
call fcn.14002a6ac
mov esi, 0x11
mov ecx, esi
call fcn.14002647c
mov rbx, rax
mov ecx, dword [rsp + 0x64]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, esi
mov rcx, rbx
call fcn.140039878
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140019694
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rbx
call fcn.140025ee0
nop
jmp 0x140014a85
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140019510
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140014ab5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140025e90
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.14000fc30
nop
mov ecx, 0x80004005
call fcn.14000fc30
int3
mov ecx, 0x80004005
call fcn.14000fc30
int3