Function at 0x441775
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x4947b8]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x50]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44196f
cmp byte [0x49eff4], al
je 0x4418da
push 8
pop ecx
push 2
pop esi
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
and dword [esp + 0x18], eax
cmp dword [0x495f68], 0x10
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov eax, 0x495f54
cmovae eax, dword [0x495f54]
push 0
push eax
mov dword [esp + 0x30], 0x11
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4418cf
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4418cf
push 0
push esi
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
push 7
mov esi, eax
pop ecx
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], esi
mov cx, word [ecx + 4]
mov word [esp + 0x34], cx
movzx ecx, word [0x495e2c]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0xc]
mov word [esp + 0x36], ax
push 2
pop eax
cmp dword [ecx + 4], eax
jne 0x441864
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
jmp 0x44187c
cmp dword [ecx + 4], 0x17
jne 0x4418b3
mov esi, dword [ecx + 0x18]
add esi, 8
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x44188e
mov ebx, dword [ebx]
push 0x1c
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x441962
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x441962
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x44196f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x441969
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
movzx ecx, word [0x495e2c]
mov esi, eax
xor eax, eax
lea edi, [esp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push ecx
mov word [esp + 0x38], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x495f68], 0x10
mov word [esp + 0x36], ax
mov eax, 0x495f54
cmovae eax, dword [0x495f54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x441962
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.0044dc20
mov eax, dword [ebx + 0x10]
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
jb 0x441950
mov ebx, dword [ebx]
push 0x10
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004492e4
mov esp, ebp
pop ebp
ret