Function at 0x47d910
Capabilities:
Create udp socket
Resolve dns
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5c8eb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.0047cf30
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
test esi, esi
je 0x47d976
push esi
call eax
mov ebx, eax
test ebx, ebx
jne 0x47d948
push esi
push str.Cannot_look_up_udp_network_address:__s_n
jmp 0x47d955
cmp word [ebx + 8], 2
je 0x47d95f
push esi
push str.No_support_for_non_IPv4_network_addresses:__s_n
push 7
call fcn.0048eb50
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x47d97c
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], ecx
test edi, edi
je 0x47d9b9
push edi
call eax
mov ebx, eax
test ebx, ebx
jne 0x47d991
push edi
push str.Cannot_look_up_udp_network_address:__s_n
jmp 0x47d99e
cmp word [ebx + 8], 2
je 0x47d9a8
push edi
push str.No_support_for_non_IPv4_network_addresses:__s_n
push 7
call fcn.0048eb50
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
jmp 0x47d9bb
xor edi, edi
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x47dbf0
mov ebx, edi
and ebx, 0xf0000000
mov dword [ebp - 0xc], ebx
cmp ebx, 0xe0000000
jne 0x47da19
push 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47da19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt___error:__ld_n
call fcn.0047df20
add esp, 8
push dword [ebp + 0x10]
mov eax, 2
mov word [ebp - 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [ebp - 0x32], ax
cmp ebx, 0xe0000000
mov eax, edi
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
cmove eax, ecx
push eax
call ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x47dc0b
cmp dword [ebp - 0xc], 0xe0000000
jne 0x47dad3
test esi, esi
je 0x47da8b
push dword [ebp - 0x3c]
call ebx
push edi
mov dword [ebp - 0x10], eax
call ebx
push 0
mov dword [ebp - 0x14], eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0xf
jmp 0x47daa0
push edi
call ebx
push 0
mov dword [ebp - 0x10], eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 8
push eax
push 0xc
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push dword [ebp - 0x38]
call eax
test eax, eax
jns 0x47dad3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt___error:__ld_n
call fcn.0047df20
push str.Cannot_join_multicast_group.
push 0x3e8
call fcn.0048eb50
add esp, 0x10
push str._n_r_______________________________________________________________________n
call fcn.0048f060
add esp, 4
test edi, edi
jne 0x47db09
mov ecx, dword [ebp + 0x10]
push ecx
push str._rReading_from_UDP_socket__u_n
call fcn.0048f060
mov eax, dword [ebp - 0x38]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x47dbc0
push dword [ebp - 0x3c]
call ebx
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0
mov byte [ebp - 0x16], 0
call esi
push edi
movq xmm0, qword [eax]
movq qword [ebp - 0x24], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
movzx ecx, word [eax + 0xc]
mov word [ebp - 0x18], cx
movzx eax, byte [eax + 0xe]
mov byte [ebp - 0x16], al
call ebx
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
push eax
movq qword [ebp - 0x14], xmm0
mov word [ebp - 8], 0
mov byte [ebp - 6], 0
call esi
movq xmm0, qword [eax]
movq qword [ebp - 0x14], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
movzx ecx, word [eax + 0xc]
mov word [ebp - 8], cx
movzx eax, byte [eax + 0xe]
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 6], al
lea eax, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push str._rReading_from_UDP_socket__s__s:_u_n
call fcn.0048f060
mov eax, dword [ebp - 0x38]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
push edi
call ebx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._rReading_from_UDP_socket__s:_u_n
call fcn.0048f060
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x38]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket___error:__ld_n
call fcn.0047df20
add esp, 8
push 1
call fcn.004f72e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind___error:__ld_n
call fcn.0047df20
add esp, 8
push 1
call fcn.004f72e5
int3