Function at 0x410780
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x10478
call fcn.00438a40
mov eax, dword [0x44a00c]
xor eax, esp
mov dword [esp + 0x10474], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], eax
mov edi, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x10400
lea eax, [esp + 0x88]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [esp + 0x14], eax
cmp eax, 0x14
ja 0x410802
push str.____recv_to_small_data_len._n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x10474]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x78]
cmp dword [eax], 0x70504455
je 0x410834
push str.Not_Udp_Proxy_Magic._n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x10474]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x83]
push eax
movzx eax, word [esp + 0x84]
push eax
push dword [esp + 0x84]
lea eax, [esp + 0x4c]
push str._d:_d__d_
push eax
call fcn.00401480
lea esi, [esp + 0x54]
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x410870
mov eax, dword [esp + 0x10]
sub esi, ecx
cmp eax, 8
jbe 0x41088d
mov eax, 8
mov dword [esp + 0x10], eax
jmp 0x410891
test eax, eax
jle 0x4108a6
push eax
lea eax, [esp + 0x44]
add eax, esi
push edi
push eax
call fcn.00438ba0
add esp, 0xc
add esi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x44]
mov edx, 8
push esi
push eax
lea ecx, [esp + 0x90]
call fcn.00401370
mov esi, dword [edi + 8]
add esp, 0xc
test esi, esi
jle 0x410948
lea edx, [esp + 0x84]
mov ecx, edi
sub esi, 4
jb 0x4108e8
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4108ed
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4108d7
cmp esi, 0xfffffffc
je 0x410948
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41091a
cmp esi, 0xfffffffd
je 0x410948
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41091a
cmp esi, 0xfffffffe
je 0x410948
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x41091a
cmp esi, 0xffffffff
je 0x410948
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x410948
lea eax, [esp + 0x84]
push eax
push str.Not_Match_UDP_Password.__s__n
call fcn.00401410
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x10474]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add eax, 0xffffffec
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x410985
nop
mov edx, dword [eax + 0x10]
lea esi, [eax + 8]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x24]
cmp edx, dword [esi]
lea esi, [eax + 8]
jne 0x41097f
mov edx, dword [esp + 0x22]
cmp word [esi + 0xc], dx
je 0x4109bd
mov eax, dword [eax]
cmp eax, ecx
jne 0x410960
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jns 0x4109d2
push str.create_peer_udp_socket_error_n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x10474]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 4
push 0
call fcn.004230b2
add esp, 4
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x410a8b
push esi
push dword [esp + 0x26]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.proxy_New_UDP_Peer_socket_for_peer___s:_d___fd_d_n
call fcn.00401410
add esp, 0x10
mov dword [esp + 0x14], 1
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x44], esi
call fcn.004230b2
mov dword [esp + 0x54], eax
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov ax, word [esp + 0x22]
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], edx
mov esi, dword [eax]
lea eax, [esp + 0x40]
push eax
push dword [esi + 4]
push esi
call fcn.00414650
mov edx, eax
mov ecx, 0x6666665
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
sub ecx, eax
cmp ecx, 1
jb 0x410b77
mov ecx, dword [esp + 0xc]
inc eax
mov dword [ecx + 4], eax
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, 8
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x58]
sub eax, dword [edi + 0x54]
sar eax, 4
test eax, eax
je 0x410b1c
mov eax, dword [edi + 0x58]
xor ecx, ecx
sub eax, dword [edi + 0x54]
sar eax, 4
test eax, eax
je 0x410b1c
mov edx, dword [edi + 0x54]
nop
mov eax, dword [esp + 0x80]
cmp ax, word [edx]
je 0x410acf
mov eax, dword [edi + 0x58]
inc ecx
sub eax, dword [edi + 0x54]
add edx, 0x10
sar eax, 4
cmp ecx, eax
jb 0x410ab0
jmp 0x410b1c
mov edx, dword [edi + 0x54]
shl ecx, 4
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + edx + 8]
sub eax, dword [ecx + edx + 4]
sar eax, 2
test eax, eax
je 0x410b1c
mov esi, dword [ecx + edx + 8]
sub esi, dword [ecx + edx + 4]
sar esi, 2
call fcn.0042486f
movzx eax, ax
xor edx, edx
div esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x54]
mov eax, dword [ecx + eax + 4]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x7c], eax
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x30], xmm0
mov word [esp + 0x30], ax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
push 0x10
mov word [esp + 0x36], ax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x9c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x1047c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.0041be15
int3