Function at 0x14003c4f0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r13, qword [sym.imp.libssp_0.dll___stack_chk_guard]
pxor xmm0, xmm0
mov rax, qword [r13]
mov qword [rsp + 0xa8], rax
xor eax, eax
mov dword [rsp + 0x70], 0x402
mov r12, rdx
mov rbp, rcx
movups xmmword [rsp + 0x84], xmm0
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x90], xmm0
mov eax, dword [0x140084060]
cmp eax, 1
sbb eax, eax
and eax, 0xfffff800
add eax, 0xc02
mov dword [rsp + 0x70], eax
call dbg.inet_ai_family_from_address
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x74], eax
test rdx, rdx
jne 0x14003c808
mov rcx, qword [rbp]
test rcx, rcx
je 0x14003c847
mov rdx, qword [rbp + 8]
test rdx, rdx
je 0x14003c847
lea rbx, [rsp + 0x60]
lea r15, [rsp + 0x70]
mov rsi, qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r9, rbx
mov r8, r15
call rsi
cmp eax, 0x2726
je 0x14003c75d
test eax, eax
jne 0x14003c768
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x14003c810
mov rdi, qword [sym.imp.msvcrt.dll__errno]
mov rbx, r14
nop dword [rax]
mov rcx, qword [rsp + 0x58]
call sym.error_free
mov edx, dword [rbx + 8]
mov r8d, dword [rbx + 0xc]
mov qword [rsp + 0x58], 0
mov ecx, dword [rbx + 4]
call dbg.qemu_socket
mov esi, eax
test eax, eax
js 0x14003c7b0
mov ecx, eax
call dbg.socket_set_fast_reuse
mov rdx, qword [rbx + 0x20]
mov r8d, dword [rbx + 0x10]
mov ecx, esi
call dbg.qemu_connect_wrap
test eax, eax
js 0x14003c6e0
mov rcx, r14
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp byte [rbp + 0x1b], 0
jne 0x14003c677
cmp byte [rbp + 0x1a], 0
je 0x14003c677
mov rax, qword [rsp + 0xa8]
sub rax, qword [r13]
jne 0x14003c871
mov eax, esi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9, r15
mov r8d, 8
mov edx, 0xffff
mov ecx, esi
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], 1
call dbg.qemu_setsockopt_wrap
test eax, eax
jns 0x14003c64f
call qword [sym.imp.msvcrt.dll__errno]
lea rdi, str.Unable_to_set_KEEPALIVE
mov rcx, r12
lea r9, global___func__.144
mov qword [rsp + 0x28], rdi
mov eax, dword [rax]
mov r8d, 0x1ea
lea rdx, str..._util_qemu_sockets.c
mov dword [rsp + 0x20], eax
call dbg.error_setg_errno_internal
mov ecx, esi
call sym.close
jmp 0x14003c810
call rdi
mov eax, dword [rax]
mov edx, eax
neg edx
cmp eax, 4
je 0x14003c623
test edx, edx
jns 0x14003c63a
mov r8, qword [rbp + 8]
mov rdx, qword [rbp]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
call rdi
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
lea r9, str.inet_connect_addr
mov qword [rsp + 0x30], rdx
lea rdx, str.Failed_to_connect_to__s:_s
mov qword [rsp + 0x38], r8
mov r8d, 0x180
mov qword [rsp + 0x28], rdx
mov eax, dword [rax]
lea rdx, str..._util_qemu_sockets.c
mov dword [rsp + 0x20], eax
call dbg.error_setg_errno_internal
mov ecx, esi
call dbg.qemu_closesocket_wrap
jmp 0x14003c7ed
test byte [rsp + 0x71], 8
jne 0x14003c820
mov ecx, eax
call sym.gai_strerrorA
lea r9, str.inet_parse_connect_saddr
mov r8d, 0x1b3
mov rcx, r12
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 8]
lea rdx, str..._util_qemu_sockets.c
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
lea rax, str.address_resolution_failed_for__s:_s:__s
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x14003c810
mov esi, dword [rbx + 4]
call qword [sym.imp.msvcrt.dll__errno]
lea rcx, [rsp + 0x58]
lea r9, str.inet_connect_addr
mov r8d, 0x171
mov dword [rsp + 0x30], esi
lea rsi, str.Failed_to_create_socket_family__d
lea rdx, str..._util_qemu_sockets.c
mov qword [rsp + 0x28], rsi
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
call dbg.error_setg_errno_internal
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14003c5f0
mov rcx, r14
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rsp + 0x58]
mov rcx, r12
call sym.error_propagate
mov esi, 0xffffffff
jmp 0x14003c64f
mov dword [0x140084060], 0
mov r9, rbx
mov r8, r15
and dword [rsp + 0x70], 0xfffff7ff
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
call rsi
jmp 0x14003c5cc
lea rax, str.host_and_or_port_not_specified
mov r8d, 0x1a0
mov rcx, r12
mov qword [rsp + 0x20], rax
lea r9, str.inet_parse_connect_saddr
lea rdx, str..._util_qemu_sockets.c
call dbg.error_setg_internal
jmp 0x14003c810
call sym.__stack_chk_fail
nop
nop word [rax + rax]