Function at 0x14003d6a0
Capabilities:
Resolve dns

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov r12, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [r12]
mov qword [rsp + 0x98], rax
xor eax, eax
mov eax, dword [rcx]
mov rsi, rcx
mov rbx, rdx
mov rbp, r8
test eax, eax
jne 0x14003d942
pxor xmm0, xmm0
lea rax, [rdx + 8]
lea rcx, [rcx + 8]
test rdx, rdx
lea rdx, [rsp + 0x58]
movups xmmword [rsp + 0x74], xmm0
cmovne rbx, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0xc02
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x80], xmm0
call dbg.inet_ai_family_from_address
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x68], 2
mov dword [rsp + 0x64], eax
test rdx, rdx
jne 0x14003d938
mov rdi, qword [rsi + 8]
mov rsi, qword [rsi + 0x10]
test rdi, rdi
je 0x14003d8c0
cmp byte [rdi], 0
lea rax, str.localhost
cmove rdi, rax
test rsi, rsi
je 0x14003d8e0
cmp byte [rsi], 0
je 0x14003d8e0
lea r14, [rsp + 0x60]
lea r9, [rsp + 0x48]
mov rdx, rsi
mov rcx, rdi
mov r13, qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r8, r14
call r13
test eax, eax
jne 0x14003d96c
mov rax, qword [rsp + 0x48]
pxor xmm0, xmm0
mov dword [rsp + 0x60], 1
xor edi, edi
movups xmmword [rsp + 0x64], xmm0
lea rsi, [0x140094144]
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x80], xmm0
mov eax, dword [rax + 4]
mov dword [rsp + 0x68], 2
mov dword [rsp + 0x64], eax
test rbx, rbx
je 0x14003d807
mov rdi, qword [rbx]
mov rsi, qword [rbx + 8]
test rdi, rdi
je 0x14003d7f0
xor eax, eax
cmp byte [rdi], 0
cmove rdi, rax
test rsi, rsi
je 0x14003d8d0
cmp byte [rsi], 0
lea rax, [0x140094144]
cmove rsi, rax
lea r9, [rsp + 0x50]
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call r13
test eax, eax
jne 0x14003d9af
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
mov r8d, dword [rax + 0xc]
call dbg.qemu_socket
mov ebx, eax
test eax, eax
js 0x14003da32
mov ecx, eax
call dbg.socket_set_fast_reuse
mov rax, qword [rsp + 0x50]
mov ecx, ebx
mov rdx, qword [rax + 0x20]
mov r8d, dword [rax + 0x10]
call dbg.qemu_bind_wrap
test eax, eax
js 0x14003d9f2
mov rax, qword [rsp + 0x48]
mov ecx, ebx
mov rdx, qword [rax + 0x20]
mov r8d, dword [rax + 0x10]
call dbg.qemu_connect_wrap
test eax, eax
js 0x14003da80
mov rcx, qword [rsp + 0x50]
mov rsi, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rsi
mov rcx, qword [rsp + 0x48]
call rsi
mov rax, qword [rsp + 0x98]
sub rax, qword [r12]
jne 0x14003dac3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdi, str.localhost
jmp 0x14003d764
lea rsi, [0x140094144]
jmp 0x14003d807
lea rax, str.remote_port_not_specified
mov r8d, 0x227
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r9, str.inet_dgram_saddr
lea rdx, str..._util_qemu_sockets.c
call dbg.error_setg_internal
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003d918
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003d928
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ebx, 0xffffffff
jmp 0x14003d892
mov rcx, rbp
call sym.error_propagate
jmp 0x14003d908
lea rax, str.socket_type_unsupported_for_datagram
mov r8d, 0x529
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r9, global___func__.39
lea rdx, str..._util_qemu_sockets.c
call dbg.error_setg_internal
jmp 0x14003d928
mov ecx, eax
call sym.gai_strerrorA
mov qword [rsp + 0x30], rsi
mov rcx, rbp
lea r9, str.inet_dgram_saddr
mov qword [rsp + 0x38], rax
lea rax, str.address_resolution_failed_for__s:_s:__s
mov r8d, 0x22c
lea rdx, str..._util_qemu_sockets.c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x14003d908
mov ecx, eax
call sym.gai_strerrorA
mov qword [rsp + 0x30], rsi
mov rcx, rbp
lea r9, str.inet_dgram_saddr
mov qword [rsp + 0x38], rax
lea rax, str.address_resolution_failed_for__s:_s:__s
mov r8d, 0x246
lea rdx, str..._util_qemu_sockets.c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x14003d908
call qword [sym.imp.msvcrt.dll__errno]
lea rdi, str.Failed_to_bind_socket
mov rcx, rbp
lea r9, str.inet_dgram_saddr
mov qword [rsp + 0x28], rdi
mov eax, dword [rax]
mov r8d, 0x256
lea rdx, str..._util_qemu_sockets.c
mov dword [rsp + 0x20], eax
call dbg.error_setg_errno_internal
mov ecx, ebx
call dbg.qemu_closesocket_wrap
jmp 0x14003d908
mov rax, qword [rsp + 0x48]
lea rdi, str.Failed_to_create_socket_family__d
mov esi, dword [rax + 4]
call qword [sym.imp.msvcrt.dll__errno]
mov qword [rsp + 0x28], rdi
mov rcx, rbp
lea r9, str.inet_dgram_saddr
mov dword [rsp + 0x30], esi
mov eax, dword [rax]
mov r8d, 0x24e
lea rdx, str..._util_qemu_sockets.c
mov dword [rsp + 0x20], eax
call dbg.error_setg_errno_internal
cmp ebx, 0xffffffff
je 0x14003d908
jmp 0x14003da26
call qword [sym.imp.msvcrt.dll__errno]
mov qword [rsp + 0x30], rdi
mov rcx, rbp
lea rdi, str.Failed_to_connect_to__s:_s
mov qword [rsp + 0x38], rsi
lea r9, str.inet_dgram_saddr
mov r8d, 0x25c
lea rdx, str..._util_qemu_sockets.c
mov qword [rsp + 0x28], rdi
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
call dbg.error_setg_errno_internal
jmp 0x14003da26
call sym.__stack_chk_fail
nop
nop dword [rax]