Function at 0x52d110
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 4]
mov esi, 1
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
je 0x52d20d
cmp byte [eax], 0x2d
jne 0x52d20d
push 0x74
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52d174
mov dword [esp + 0x38], edi
mov eax, dword [ebx + 4]
push 0x6e
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52d18a
mov dword [esp + 0x2c], esi
mov ecx, dword [ebx + 4]
push 0x62
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52d1a0
mov dword [esp + 0x18], esi
mov edx, dword [ebx + 4]
push 0x6b
push edx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52d1b6
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 4]
push 0x64
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52d1ca
mov ebp, esi
mov ecx, dword [ebx + 4]
push 0x7a
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52d1e0
mov dword [esp + 0x3c], esi
cmp ebp, edi
mov esi, 2
je 0x52d20d
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x52d290
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x52d2ba
mov dword [esp + 0x14], esi
mov esi, 3
mov eax, dword [ebx + esi*4]
cmp eax, edi
je 0x52d290
mov dword [esp + 0x1c], esi
lea edx, [eax + 1]
jmp 0x52d220
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52d220
sub eax, edx
cmp eax, 0x5a
jbe 0x52d244
xor edx, edx
mov ecx, 0x1452
call fcn.0041f1a0
mov edx, dword [ebx + esi*4]
push eax
push edx
jmp 0x52d7ba
mov ecx, dword [ebx + esi*4 + 4]
inc esi
mov dword [esp + 0x20], esi
call fcn.005037f0
test eax, eax
je 0x52d270
mov eax, dword [ebx + esi*4]
push eax
call fcn.005915c3
add esp, 4
cmp ax, di
mov dword [esp + 0x10], eax
jbe 0x52d2ba
inc esi
mov dword [esp + 0x20], esi
mov eax, dword [ebx + esi*4]
cmp eax, edi
je 0x52d2d8
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x52d2ba
mov eax, dword [ebx + esi*4 + 4]
inc esi
cmp eax, edi
jne 0x52d2a8
mov edx, dword [ebx]
push edi
push edi
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 8
push eax
call fcn.005915c3
add esp, 4
cmp ax, di
mov dword [esp + 0x30], eax
ja 0x52d2d3
mov edx, dword [ebx]
push 3
push edi
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 8
inc esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + esi*4]
call fcn.0052cde0
mov ebp, eax
cmp ebp, edi
je 0x52d342
cmp dword [ebp + 0x1bc], edi
jne 0x52d307
xor edx, edx
mov ecx, 0x1453
call fcn.0041f1a0
mov ecx, dword [ebx + esi*4]
push eax
jmp 0x52d7b9
mov ecx, dword [esp + 0x10]
cmp cx, di
je 0x52d625
mov ax, word [ebp + 0x12c]
cmp ax, cx
je 0x52d625
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + eax*4]
push edx
push ecx
xor edx, edx
mov ecx, 0x1451
call fcn.0041f1a0
push eax
jmp 0x52d7bf
call fcn.0052cb80
mov ebp, eax
cmp ebp, edi
jne 0x52d366
mov edx, dword [ebx]
push 2
push edi
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + edx*4]
push eax
mov edx, 0x64
mov ecx, ebp
call fcn.00420d70
mov edi, dword [esp + 0xd4]
lea esi, [edi + 0x15d8]
push esi
lea ecx, [ebp + 0x64]
mov edx, 0x64
call fcn.00420d70
push esi
lea ecx, [ebp + 0xc8]
mov edx, 0x64
call fcn.00420d70
mov cx, word [esp + 0x10]
lea esi, [ebp + 0x12c]
push 0
mov word [esi], cx
mov dword [ebp + 0x1b0], 2
call fcn.00591e16
mov edx, dword [esp + 0x2c]
mov cx, word [esp + 0x34]
mov dword [ebp + 0x1dc], eax
mov dword [ebp + 0x1e0], eax
mov dword [ebp + 0x1e4], eax
mov dword [ebp + 0x1bc], 1
mov dword [ebp + 0x1c0], edx
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x1c4], eax
xor eax, eax
mov word [ebp + 0x1c8], cx
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, eax
mov dword [ebp + 0x1cc], eax
mov word [ebp + 0x1d0], ax
je 0x52d431
mov edx, ecx
mov eax, dword [ebx + edx*4]
push eax
lea ecx, [ebp + 0x12e]
mov edx, 0x64
call fcn.00420d70
cmp word [esp + 0x10], 0
mov dword [ebp + 0x204], edi
jne 0x52d50a
push 0x5f3560
mov edx, 0x64
lea ecx, [esp + 0x6c]
call fcn.00420d70
mov al, byte [ebp + 0x12e]
test al, al
mov ecx, dword [0x5f3558]
lea edi, [ebp + 0x12e]
mov dword [esp + 0x14], ecx
je 0x52d48a
push edi
mov edx, 0x64
mov ecx, 0x5f3560
call fcn.00420d70
mov dword [0x5f3558], 2
mov dx, word [0x5bfd6c]
mov cx, word [0x5bfd68]
push 0
push 0
push 1
push esi
call fcn.00515a30
lea edx, [esp + 0x68]
push edx
mov edx, 0x64
mov ecx, 0x5f3560
mov dword [ebp + 0x200], eax
call fcn.00420d70
mov eax, dword [esp + 0x14]
mov dword [0x5f3558], eax
cmp dword [ebp + 0x200], 0xffffffff
jne 0x52d5b8
mov ecx, ebp
call fcn.0052ccd0
mov ecx, 0x1454
xor edx, edx
call fcn.0041f1a0
push eax
push str.__sockudp:__s
push 0x5cbac0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret 8
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp + 0x200], eax
jne 0x52d52f
mov ecx, ebp
call fcn.0052ccd0
mov ecx, 0x1455
jmp 0x52d4e0
push 0x5f3560
mov edx, 0x64
lea ecx, [esp + 0x6c]
call fcn.00420d70
mov al, byte [ebp + 0x12e]
test al, al
mov ecx, dword [0x5f3558]
lea edi, [ebp + 0x12e]
mov dword [esp + 0x14], ecx
je 0x52d576
push edi
mov edx, 0x64
mov ecx, 0x5f3560
call fcn.00420d70
mov dword [0x5f3558], 2
mov dx, word [esi]
mov ecx, dword [ebp + 0x200]
call fcn.00515960
lea edx, [esp + 0x68]
push edx
mov edx, 0x64
mov ecx, 0x5f3560
mov esi, eax
call fcn.00420d70
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [0x5f3558], eax
jne 0x52d5b8
mov ecx, ebp
call fcn.0052ccd0
mov ecx, 0x1456
jmp 0x52d4e0
mov ecx, dword [0x5f92ec]
mov edx, dword [ebp + 0x200]
push 0x23
push 0x8038
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [ebp + 0x200]
cmp eax, 0xffffffff
je 0x52d625
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x5c]
push edx
push eax
mov dword [esp + 0x34], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x52d625
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
mov edx, 0x64
mov ecx, edi
call fcn.00420d70
mov ecx, dword [esp + 0x5a]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [ebp + 0x192], ax
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x20]
je 0x52d652
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x52d652
push eax
call fcn.0059164b
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jg 0x52d651
mov dword [esp + 0x18], 0
inc esi
mov ecx, dword [ebx + esi*4]
test ecx, ecx
jne 0x52d6ae
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x52d67f
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x52d676
mov eax, dword [ebp + 0x1c0]
test eax, eax
jmp 0x52da0e
mov eax, dword [esp + 0x34]
mov byte [eax], 0
jmp 0x52d698
mov eax, dword [esp + 0x34]
mov cx, word [0x5a4be8]
mov edx, eax
mov word [edx], cx
mov cl, byte [0x5a4bea]
mov byte [edx + 2], cl
mov esi, eax
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52d6a0
sub eax, edx
jmp 0x52d773
mov eax, dword [esp + 0x38]
test eax, eax
je 0x52d702
cmp byte [ecx], 0x26
jne 0x52d702
mov edx, dword [esp + 0xd0]
call fcn.0041d580
test eax, eax
jne 0x52d6f2
mov eax, dword [ebp + 0x1c0]
test eax, eax
jne 0x52d6dc
mov ecx, ebp
call fcn.0052ccd0
xor edx, edx
mov ecx, 0x1457
call fcn.0041f1a0
mov edx, dword [ebx + esi*4]
push eax
push edx
jmp 0x52d7ba
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
add esi, ecx
mov dword [esp + 0x10], eax
jmp 0x52d765
mov edi, dword [esp + 0x34]
push ebx
mov edx, edi
mov ecx, esi
mov byte [edi], 0
call fcn.005039a0
mov eax, edi
mov esi, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52d720
mov ecx, dword [esp + 0x2c]
sub eax, edx
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x52d765
cmp byte [eax + edi - 1], 0xa
je 0x52d765
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52d740
mov ax, word [0x5a4be8]
mov word [edi], ax
mov eax, dword [esp + 0x10]
mov cl, byte [0x5a4bea]
add eax, 2
mov byte [edi + 2], cl
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x52d777
cmp ecx, eax
jge 0x52d777
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x1a4]
test ecx, ecx
je 0x52d842
mov edx, dword [ebp + 0x1a8]
add eax, edx
cmp eax, 0x4000
jle 0x52d7dc
mov eax, dword [ebp + 0x1c0]
test eax, eax
jne 0x52d7a5
mov ecx, ebp
call fcn.0052ccd0
xor edx, edx
mov ecx, 0x1458
call fcn.0041f1a0
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + eax*4]
push ecx
push str.__sockudp:__s__s
push 0x5cbac0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret 8
add eax, 0xa
push eax
push ecx
call fcn.00593194
add esp, 8
test eax, eax
jne 0x52d818
mov eax, dword [ebp + 0x1c0]
test eax, eax
jne 0x52d7fe
mov ecx, ebp
call fcn.0052ccd0
mov edx, dword [ebx]
push 2
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 8
mov edi, dword [ebp + 0x1a8]
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x1a4], eax
add edi, eax
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0x1a8], edx
jmp 0x52d89f
add eax, 0xa
push eax
call fcn.00591118
add esp, 4
test eax, eax
mov dword [ebp + 0x1a4], eax
jne 0x52d883
mov eax, dword [ebp + 0x1c0]
test eax, eax
jne 0x52d869
mov ecx, ebp
call fcn.0052ccd0
mov edx, dword [ebx]
push 2
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 8
mov edx, dword [esp + 0x10]
mov ecx, edx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x1a8], edx
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], edx
xor edi, edi
push ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], edx
mov word [esp + 0x44], 2
mov dword [esp + 0x48], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [esp + 0x50]
mov word [esp + 0x42], ax
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1a8]
cmp eax, 0x2000
jle 0x52d8fa
mov eax, 0x2000
mov edx, dword [ebp + 0x1a4]
push 0x10
lea ecx, [esp + 0x44]
push ecx
push edi
push eax
mov eax, dword [ebp + 0x200]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52d969
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x52da17
mov edx, dword [ebp + 0x200]
movzx ecx, ax
shl ecx, 0x10
or ecx, 2
push ecx
push edx
mov dword [ebp + 0x1e8], eax
mov eax, dword [0x5f92ec]
push 0x8038
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbc
ret 8
push edi
call fcn.00591e16
add esp, 4
cmp esi, edi
mov dword [ebp + 0x1e0], eax
jle 0x52d9c2
mov edx, dword [ebp + 0x1d4]
mov eax, dword [ebp + 0x1a8]
add edx, esi
cmp esi, eax
mov dword [ebp + 0x1d4], edx
jge 0x52d9c2
sub eax, esi
mov dword [ebp + 0x1a8], eax
mov ebp, dword [ebp + 0x1a4]
push eax
lea ecx, [esi + ebp]
push ecx
push ebp
call fcn.00592290
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbc
ret 8
mov edx, dword [ebp + 0x1a4]
push edx
call fcn.0059112a
mov dword [ebp + 0x1a4], edi
mov dword [ebp + 0x1a8], edi
mov eax, dword [0x5f35d0]
add esp, 4
cmp eax, edi
je 0x52da08
cmp dword [ebp + 0x1c0], edi
je 0x52da10
mov eax, dword [ebp + 0x1ac]
mov ecx, dword [0x5f92ec]
push ebp
push eax
push 0x803a
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 0x1c0], edi
jne 0x52da17
mov ecx, ebp
call fcn.0052ccd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbc
ret 8