Function at 0x4372e0
Capabilities:
Create udp socket
Reference 114dns dns server
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2016c
call fcn.00463100
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x20168], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov esi, edx
test eax, eax
je 0x43746c
test ecx, ecx
je 0x43746c
lea eax, [esp + 0x1c]
push eax
call fcn.00433790
test esi, esi
je 0x43735c
push esi
call fcn.00438060
add esp, 4
test al, al
je 0x43735c
push esi
lea ecx, [esp + 0x38]
call fcn.00403740
lea ecx, [esp + 0x34]
push ecx
lea ebx, [esp + 0x20]
call fcn.00421b70
lea ecx, [esp + 0x34]
call fcn.004037b0
jmp 0x437369
lea edx, [esp + 0x1c]
push edx
call fcn.00437c80
add esp, 4
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4373fd
mov edi, 0x4885cc
mov ecx, dword [edi]
mov eax, ecx
mov dword [esp + 0x15c], 0xf
mov dword [esp + 0x158], 0
mov byte [esp + 0x148], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4373b0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x14c]
call fcn.00403b10
lea ecx, [esp + 0x144]
push ecx
lea ebx, [esp + 0x20]
call fcn.00421b70
cmp dword [esp + 0x15c], 0x10
jb 0x4373f2
mov edx, dword [esp + 0x148]
push edx
call fcn.0044caf8
add esp, 4
add edi, 4
cmp edi, 0x4885e4
jl 0x43738b
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, eax
xor eax, eax
mov word [esp + 0x160], ax
mov dword [esp + 0x162], eax
mov dword [esp + 0x166], eax
mov dword [esp + 0x16a], eax
mov word [esp + 0x16e], ax
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ebx
jne 0x437484
cmp ebx, 0xffffffff
je 0x437463
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea esi, [esp + 0x1c]
call fcn.00415470
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20168]
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret
cmp esi, edi
jbe 0x43748d
call fcn.0044cae8
xor eax, eax
mov dword [esp + 0x146], eax
mov dword [esp + 0x14a], eax
mov dword [esp + 0x14e], eax
mov word [esp + 0x152], ax
mov eax, dword [esp + 0x1c]
xor edx, edx
mov word [esp + 0x144], dx
test eax, eax
jne 0x4374de
call fcn.0044cae8
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4374cf
call fcn.0044cae8
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
jb 0x4374e2
mov ecx, dword [esi + 4]
jmp 0x4374e5
mov eax, dword [eax]
jmp 0x4374c5
lea ecx, [esi + 4]
lea esi, [esp + 0x144]
call fcn.004380a0
mov ecx, dword [esp + 0x148]
mov eax, dword [esp + 0x144]
mov edx, dword [esp + 0x14c]
push pe_nt_image_headers32
mov dword [esp + 0x168], ecx
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x54]
push 0
push ecx
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], eax
call fcn.00452c80
add esp, 0xc
push 0xffff
lea edx, [esp + 0x175]
push 0
push edx
mov dword [esp + 0x20], 0xffffffff
mov byte [esp + 0x17c], 0
call fcn.00452c80
add esp, 0xc
push 0xffff
lea eax, [esp + 0x10175]
push 0
push eax
mov byte [esp + 0x1017c], 0
call fcn.00452c80
mov esi, dword [esp + 0x18]
mov eax, esi
add esp, 0xc
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4375a1
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00403b10
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x180]
lea eax, [esp + 0x174]
push edx
mov edi, eax
call fcn.00437d90
add esp, 8
cmp dword [esp + 0x4c], ebx
jb 0x4375e6
mov eax, dword [esp + 0x38]
push eax
call fcn.0044caf8
add esp, 4
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4375f0
mov esi, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x164]
push ecx
sub eax, edx
push 0
add eax, 0x11
push eax
lea edx, [esp + 0x180]
push edx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x43771e
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x148]
mov word [esp + 0x148], ax
mov dword [esp + 0x14a], eax
mov dword [esp + 0x14e], eax
mov dword [esp + 0x152], eax
mov word [esp + 0x156], ax
push edx
lea eax, [esp + 0x10178]
push eax
mov dword [esp + 0x18], ebx
call fcn.00437f60
add esp, 0xc
cmp eax, 0xffffffff
je 0x43771e
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437680
sub eax, edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x10174]
lea eax, [esp + eax + 0x10185]
push edx
mov ecx, edx
call fcn.00437e30
mov eax, dword [esp + 0x1017e]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
add esp, 8
push eax
call esi
mov ecx, 0x14
cmp cx, ax
jae 0x4376c5
mov eax, ecx
jmp 0x4376d2
mov edx, dword [esp + 0x10176]
push edx
call esi
movzx eax, ax
mov edi, dword [esp + 0x10]
mov dword [edi], 0
test eax, eax
jle 0x437711
lea esi, [esp + 0x58]
mov ebx, eax
mov eax, dword [esi - 4]
movzx ecx, word [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, 1
cmp dx, ax
jne 0x437709
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [eax]
mov dword [edi + ecx*4 + 4], edx
inc dword [edi]
add esi, 0xc
sub ebx, 1
jne 0x4376e6
cmp dword [edi], 0
jle 0x43771e
mov dword [esp + 0x14], 0
lea esi, [esp + 0x58]
mov edi, 0x14
mov eax, dword [esi - 8]
xor ebx, ebx
cmp eax, ebx
je 0x437739
push eax
call fcn.0044d5a4
add esp, 4
mov eax, dword [esi]
cmp eax, ebx
je 0x437748
push eax
call fcn.0044d5a4
add esp, 4
add esi, 0xc
sub edi, 1
jne 0x437727
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x437781
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.004157f0
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0044caf8
mov ecx, dword [esp + 0x20178]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret