Function at 0x14000358d
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov eax, edx
mov word [rbp + 0x28], ax
mov ebx, 0
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
cmp qword [rbp + 0x20], 0
je 0x1400035cb
mov ecx, 0x1e0
call fcn.14000345f
mov rbx, rax
test rbx, rbx
jne 0x1400035df
lea rax, str.gethostpoop_fuxored
mov rcx, rax
call fcn.140003307
mov rcx, rbx
lea rax, str._UNKNOWN_
mov rdx, rax
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_inet_addr]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0xffffffff
jne 0x1400037e1
cmp word [rbp + 0x28], 0
je 0x14000362d
mov rax, qword [rbp + 0x20]
mov rdx, rax
lea rax, str.Cant_parse__s_as_an_IP_address
mov rcx, rax
call fcn.140003307
mov rax, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000366c
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rax, qword [rbp + 0x20]
mov r8d, edx
mov rdx, rax
lea rax, str._s:_forward_host_lookup_failed:_h_errno__d
mov rcx, rax
call fcn.140003307
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rbx
mov r8d, 0x100
mov rdx, rax
call sub.msvcrt.dll_strncpy
mov esi, 0
jmp 0x1400036f7
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
movsxd rdx, esi
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
movsxd rdx, esi
add rdx, 0x70
shl rdx, 2
add rdx, rbx
mov eax, dword [rax]
mov dword [rdx], eax
movsxd rax, esi
add rax, 0x70
mov eax, dword [rbx + rax*4]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_inet_ntoa]
call rax
mov rcx, rax
movsxd rdx, esi
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, 0x100
add rax, rbx
mov r8d, 0x18
mov rdx, rcx
mov rcx, rax
call sub.msvcrt.dll_strncpy
add esi, 1
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
movsxd rdx, esi
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x14000371a
cmp esi, 7
jle 0x14000368b
movzx eax, word [0x140012216]
test ax, ax
jne 0x14000372e
mov rax, rbx
jmp 0x1400038fd
mov esi, 0
jmp 0x1400037c1
movsxd rax, esi
add rax, 0x70
shl rax, 2
add rax, rbx
mov r8d, 2
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostbyaddr]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140003774
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
jne 0x1400037af
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov ecx, eax
movsxd rdx, esi
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, 0x100
add rax, rbx
mov r8d, ecx
mov rdx, rax
lea rax, str.Warning:_inverse_host_lookup_failed_for__s:_h_errno__d
mov rcx, rax
call fcn.140003210
jmp 0x1400037be
mov rax, qword [rbp - 8]
mov rdx, rax
mov rcx, rbx
call fcn.140003521
add esi, 1
movsxd rax, esi
add rax, 0x70
mov eax, dword [rbx + rax*4]
test eax, eax
je 0x1400038fa
cmp esi, 7
jle 0x140003738
jmp 0x1400038fa
lea rax, [rbx + 0x1c0]
mov edx, dword [rbp - 0xc]
mov dword [rax], edx
mov eax, dword [rbp - 0xc]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_inet_ntoa]
call rax
mov rdx, rax
lea rax, [rbx + 0x100]
mov r8d, 0x17
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov byte [rbx + 0x117], 0
cmp word [rbp + 0x28], 0
je 0x140003829
mov rax, rbx
jmp 0x1400038fd
movzx eax, word [0x140012216]
test ax, ax
jne 0x14000383d
mov rax, rbx
jmp 0x1400038fd
lea rax, [rbp - 0xc]
mov r8d, 2
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostbyaddr]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003889
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rax, qword [rbp + 0x20]
mov r8d, edx
mov rdx, rax
lea rax, str._s:_inverse_host_lookup_failed:_h_errno__d
mov rcx, rax
call fcn.140003210
jmp 0x1400038fa
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rbx
mov r8d, 0xfe
mov rdx, rax
call sub.msvcrt.dll_strncpy
mov rax, rbx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400038cb
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
test rax, rax
jne 0x1400038eb
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov rdx, rbx
mov r8d, eax
lea rax, str.Warning:_forward_host_lookup_failed_for__s:_h_errno__d
mov rcx, rax
call fcn.140003210
jmp 0x1400038fa
mov rax, qword [rbp - 8]
mov rdx, rax
mov rcx, rbx
call fcn.140003521
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rbp
ret