Function at 0x442e38
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 [0x4977b8]
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 0x443032
cmp byte [0x4a21b5], al
je 0x442f9d
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 [0x499040], 0x10
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov eax, 0x49902c
cmovae eax, dword [0x49902c]
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 0x442f92
mov eax, dword [esp + 0xc]
test eax, eax
je 0x442f92
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 [0x498e34]
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 0x442f27
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
jmp 0x442f3f
cmp dword [ecx + 4], 0x17
jne 0x442f76
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 0x442f51
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 0x443025
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x443025
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 0x443032
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x44302c
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
movzx ecx, word [0x498e34]
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 [0x499040], 0x10
mov word [esp + 0x36], ax
mov eax, 0x49902c
cmovae eax, dword [0x49902c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x443025
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.0044f2e0
mov eax, dword [ebx + 0x10]
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
jb 0x443013
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.0044a9a4
mov esp, ebp
pop ebp
ret