Function at 0x4589d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x14]
movzx ecx, word [ebp + 0x10]
push ebx
push esi
mov byte [ebp - 0x15], al
mov eax, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 0x24], ecx
push edi
mov dword [ebp - 0x20], eax
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x458a00
sub esi, ecx
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x1c], esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x458a4b
push str.failed_to_allocate_memory_for_parsed_hostname
call fcn.00457a20
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
lea edi, [esi + 1]
xor edx, edx
test edi, edi
jle 0x458a86
mov eax, 1
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx + eax - 1]
cmp cl, 0x2e
je 0x458a76
test cl, cl
je 0x458a76
mov byte [eax + ebx], cl
inc edx
jmp 0x458a7d
mov byte [ebx + esi], dl
xor edx, edx
mov esi, eax
inc eax
sub edi, 1
jne 0x458a60
mov esi, dword [ebp - 0x1c]
mov byte [ebx + esi + 1], 0
mov eax, 2
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x14e9
mov word [ebp - 0x14], ax
call esi
push str.224.0.0.251
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x14
mov dword [ebp - 0x10], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x458aec
push str.failed_to_allocate_memory_for_mDNS_message
call fcn.00457a20
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
mov word [edi], ax
call esi
push 1
mov word [edi + 2], ax
call esi
mov ecx, ebx
mov word [edi + 4], ax
xor eax, eax
mov dword [edi + 8], eax
mov word [edi + 6], ax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458b10
sub ecx, edx
lea esi, [ecx + 1]
mov dword [ebp - 0x1c], esi
cmp esi, 0xfd
jbe 0x458b2e
mov eax, str.domain_name_too_long
jmp 0x458b55
push esi
push str.name_length:__u_n
call fcn.00457a20
lea eax, [esi + 4]
push eax
mov dword [edi + 0x10], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x458b85
mov eax, str.could_not_allocate_memory_for_DNS_question
push eax
call fcn.00457a20
mov dword [edi + 0xc], 0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call esi
push ebx
call esi
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [ebp - 0x15], 0
mov ecx, 1
movzx esi, ax
mov eax, 0x8001
cmove eax, ecx
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov word [ecx + edx], si
mov word [ecx + edx + 2], ax
mov dword [edi + 0xc], edx
call ebx
mov eax, dword [edi + 0x10]
add esp, 4
add eax, 0xc
mov dword [ebp - 0x24], eax
cmp eax, 0x1000
jbe 0x458bef
push str.mDNS_message_too_large
jmp 0x458c07
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x458c2b
push str.failed_to_allocate_data_for_packed_mDNS_message
call fcn.00457a20
push dword [edi + 0xc]
call ebx
push edi
call ebx
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
movq xmm0, qword [edi]
movq qword [esi], xmm0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + 0xc]
call ebx
push edi
call ebx
mov edi, dword [ebp - 0x24]
push edi
push str.Sending_DNS_message_with_length:__u_n
call fcn.00457a20
add esp, 0x1c
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x1c]
mov esi, eax
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret