Function at 0x140004b60
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x830]
sub rsp, 0x930
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov rbx, rcx
call fcn.140047e50
xor edx, edx
mov dword [rsp + 0x40], 0x80
mov r8d, 0x80
lea rcx, [rbp - 0x80]
mov rdi, rax
call fcn.14007a110
mov rcx, qword [rbx]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov ecx, dword [rcx]
call fcn.14002e320
cmp eax, 0xffffffff
jne 0x140004c10
call fcn.140084fc0
mov r8d, dword [rax]
lea eax, [r8 - 0x64]
cmp eax, 0x28
ja 0x140004be0
cdqe
lea rbx, str.Address_already_in_use
mov rbx, qword [rbx + rax*8]
jmp 0x140004bf4
lea rbx, [0x1400ff560]
mov edx, 0x5e
mov rcx, rbx
call fcn.14008b31c
mov rdx, rbx
lea rcx, str.getpeername_failed:__.100s
call fcn.140046c10
mov rcx, rdi
call fcn.14007a83c
jmp 0x140004e60
cmp word [rbp - 0x80], 0x17
mov qword [rsp + 0x958], r14
mov qword [rsp + 0x960], r15
mov r15d, 2
jne 0x140004c8b
cmp dword [rbp - 0x78], 0
jne 0x140004c83
cmp dword [rbp - 0x74], 0
jne 0x140004c83
mov ecx, 0xffff
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x70], eax
jne 0x140004c7c
lea rcx, str.Normalising_mapped_IPv4_in_IPv6_address
call fcn.140046c70
movzx ecx, word [rbp - 0x7e]
xor edx, edx
mov eax, dword [rbp - 0x6c]
mov qword [rbp - 0x80], rdx
mov word [rbp - 0x80], r15w
mov dword [rbp - 0x7c], eax
mov word [rbp - 0x7e], cx
mov qword [rbp - 0x78], rdx
mov dword [rsp + 0x40], shutdown
jmp 0x140004c8b
cmp word [rbp - 0x80], 0x17
jne 0x140004c8b
mov dword [rsp + 0x40], 0x1c
mov rdx, rdi
lea rcx, str.Trying_to_reverse_map_address__.100s.
call fcn.140046c70
mov edx, dword [rsp + 0x40]
lea r8, [rbp]
xor r14d, r14d
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], r14d
lea rcx, [rbp - 0x80]
mov r9d, 0x401
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140004d2e
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rbp]
xor edx, edx
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.140031b10
test eax, eax
jne 0x140004d36
mov r8, rdi
lea rdx, [rbp]
lea rcx, str.Nasty_PTR_record___s__is_set_up_for__s__ignoring
call fcn.140046bb0
mov rcx, qword [rsp + 0x48]
call fcn.140031ab0
mov rcx, rdi
jmp 0x140004e4b
lea rbx, [rbp]
cmp byte [rbp], r14b
je 0x140004d53
movzx ecx, byte [rbx]
call fcn.14008a014
mov byte [rbx], al
lea rbx, [rbx + 1]
cmp byte [rbx], r14b
jne 0x140004d40
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rbp]
mov qword [rsp + 0x60], rax
xor edx, edx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
movzx eax, word [rbp - 0x80]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], 1
call fcn.140031b10
test eax, eax
je 0x140004db7
mov r8, rdi
lea rdx, [rbp]
lea rcx, str.reverse_mapping_checking_getaddrinfo_for__.700s___s__failed.
call fcn.140046bb0
mov rcx, rdi
jmp 0x140004e4b
mov rbx, qword [rsp + 0x48]
cmp rbx, r14
je 0x140004e20
mov edx, dword [rbx + 0x10]
lea r8, [rbp + 0x410]
mov rcx, qword [rbx + 0x20]
mov r9d, 0x401
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140004e17
lea r8, [rbp + 0x410]
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140004e13
inc rax
test ecx, ecx
jne 0x140004e00
test edx, edx
je 0x140004e20
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140004dc1
mov rcx, qword [rsp + 0x48]
call fcn.140031ab0
test rbx, rbx
jne 0x140004e47
lea r8, [rbp]
mov rdx, rdi
lea rcx, str.Address__.100s_maps_to__.600s__but_this_does_not_map_back_to_the_address.
call fcn.140046bb0
mov rcx, rdi
jmp 0x140004e4b
lea rcx, [rbp]
call fcn.14007a83c
mov r14, qword [rsp + 0x958]
mov r15, qword [rsp + 0x960]
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.140078840
add rsp, 0x930
pop rdi
pop rbx
pop rbp
ret