Function at 0x1400034a0
Capabilities:
Resolve dns

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
cmp qword [rsp + 0x50], 0
je 0x1400034da
mov ecx, 0x1e0
call fcn.14000334c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400034ef
lea rcx, str.gethostpoop_fuxored
call fcn.140003288
nop
mov rax, qword [rsp + 0x28]
lea rdx, str._UNKNOWN_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x140003711
movzx eax, word [rsp + 0x58]
test eax, eax
je 0x140003539
mov rdx, qword [rsp + 0x50]
lea rcx, str.Cant_parse__s_as_an_IP_address
call fcn.140003288
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000356c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, str._s:_forward_host_lookup_failed:_h_errno__d
call fcn.140003288
nop
mov rax, qword [rsp + 0x28]
mov r8d, 0x100
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
nop
mov dword [rsp + 0x20], 0
jmp 0x14000359d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x14000363c
cmp dword [rsp + 0x20], 8
jge 0x14000363c
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
movsxd rdx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4 + 0x1c0]
mov qword [rsp + 0x38], rdx
mov r8d, 4
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + rax*4 + 0x1c0]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x18
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rcx + 0x100]
mov r8d, 0x18
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
nop
jmp 0x140003593
movzx eax, word [0x14000a6f4]
test eax, eax
jne 0x140003651
mov rax, qword [rsp + 0x28]
jmp 0x14000384f
mov dword [rsp + 0x20], 0
jmp 0x140003665
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax*4 + 0x1c0], 0
je 0x14000370c
cmp dword [rsp + 0x20], 8
jge 0x14000370c
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*4 + 0x1c0]
mov r8d, 2
mov edx, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400036c6
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x1400036f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x18
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rcx + 0x100]
mov r8d, eax
mov rdx, rcx
lea rcx, str.Warning:_inverse_host_lookup_failed_for__s:_h_errno__d
call fcn.140003198
nop
jmp 0x140003707
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140003440
nop
jmp 0x14000365b
jmp 0x14000384a
mov rax, qword [rsp + 0x28]
add rax, 0x1c0
mov r8d, 4
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, 0x18
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rcx + 0x100]
mov r8d, 0xc0
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movzx eax, word [rsp + 0x58]
test eax, eax
je 0x140003772
mov rax, qword [rsp + 0x28]
jmp 0x14000384f
movzx eax, word [0x14000a6f4]
test eax, eax
jne 0x140003787
mov rax, qword [rsp + 0x28]
jmp 0x14000384f
mov r8d, 2
mov edx, 4
lea rcx, [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400037ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, str._s:_inverse_host_lookup_failed:_h_errno__d
call fcn.140003198
nop
jmp 0x14000384a
mov rax, qword [rsp + 0x28]
mov r8d, 0xfe
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rax, qword [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000381a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + rcx], 0
jne 0x14000383a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x28]
mov r8d, eax
mov rdx, rcx
lea rcx, str.Warning:_forward_host_lookup_failed_for__s:_h_errno__d
call fcn.140003198
nop
jmp 0x14000384a
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140003440
nop
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret