Function at 0x404570
Capabilities:
Create thread
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464d5d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x48b060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movups xmm0, xmmword [ebp + 8]
push 0x485f28
push str.INFO_:_Connecting_to_a_device
mov ecx, 0x48bbc0
mov byte [0x48bbc5], 1
movups xmmword [ebp - 0x80], xmm0
call fcn.0040ae30
mov ecx, eax
call fcn.0040ae30
test edi, edi
je 0x4045d9
cmp dword [edi], 0
jbe 0x4045d9
mov eax, 1
jmp 0x404692
mov ecx, dword [ebp - 0x7c]
call fcn.004032a0
cmp eax, 0xffffffff
je 0x404612
push 0x485f28
push str.INFO_:_Cant_connect_because_already_connected_to_the_same_device
mov ecx, 0x48bbc0
mov byte [0x48bbc5], 1
call fcn.0040ae30
mov ecx, eax
call fcn.0040ae30
mov eax, 2
jmp 0x404692
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
mov esi, 0x3c48
mov eax, 2
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x70], ax
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x6e], ax
lea eax, [ebp - 0x70]
push 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4046af
inc esi
cmp esi, 0xea60
jl 0x404636
push 0x485f28
mov byte [0x48bbc5], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.INFO_:_Cant_make_a_socket_because_of_error
mov ecx, 0x48bbc0
call fcn.0040ae30
mov ecx, eax
call fcn.0040b2f0
mov ecx, eax
call fcn.0040ae30
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417840
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xffffffff
jle 0x40465d
push 4
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x3e8
push eax
push 0x1006
push 0xffff
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.00412c70
mov esi, dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [ebp - 0x80]
push 0x10
push ecx
push 0
mov dword [edi + 0x1e8], eax
lea eax, [edi + 0x2c]
push 3
push eax
mov byte [edi + 0x2d], 1
mov byte [eax], 0
push dword [edi + 4]
call esi
cmp dword [0x48de10], 0
lea eax, [ebp - 0x4e]
push 0x3e
push 0
push eax
mov byte [ebp - 0x50], 0
setne byte [ebp - 0x4f]
call fcn.0041ae90
add esp, 0xc
lea eax, [ebp - 0x80]
push 0x10
push eax
push 0
push 0x40
lea eax, [ebp - 0x50]
push eax
push dword [edi + 4]
call esi
push 0
push dword [ebp - 0x7c]
lea eax, [edi + 0x28]
push eax
lea eax, [edi + 0x18]
push eax
push ecx
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x50]
push 0x40
call fcn.00412e40
add esp, 0x18
test eax, eax
jle 0x4049a8
movups xmm0, xmmword [ebp - 0x80]
movups xmmword [edi + 8], xmm0
psrldq xmm0, 4
movd dword [edi], xmm0
mov eax, dword [0x48dbec]
cmp eax, dword [0x48dbf0]
je 0x4047c6
movd dword [eax], xmm0
lea ecx, [ebp - 0x54]
mov esi, dword [0x48dbec]
push 3
call fcn.004149d0
mov edx, dword [0x48dbe4]
add edx, 4
mov eax, dword [edx]
test eax, eax
je 0x4047b5
cmp dword [eax + 8], esi
jb 0x4047ac
ja 0x4047ac
mov dword [eax], 0
mov eax, dword [eax + 4]
mov dword [edx], eax
jmp 0x4047b1
lea edx, [eax + 4]
mov eax, dword [edx]
test eax, eax
jne 0x404798
lea ecx, [ebp - 0x54]
call fcn.00414a80
add dword [0x48dbec], 4
jmp 0x4047cd
push edi
push eax
call fcn.0040b6e0
movzx eax, byte [ebp - 0x50]
mov byte [ebp - 0x55], al
movzx eax, byte [ebp - 0x4f]
mov byte [ebp - 0x56], al
movzx eax, byte [ebp - 0x4e]
mov byte [ebp - 0x57], al
movzx eax, byte [ebp - 0x4d]
mov byte [ebp - 0x58], al
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x1e0], eax
cdq
and edx, 3
mov byte [0x48dc6c], 1
add eax, edx
sar eax, 2
mov dword [edi + 0x1e4], eax
call fcn.00412c70
movsx esi, byte [ebp - 0x4c]
mov dword [edi + 0x1ec], eax
mov dword [ebp - 0x58], esi
lea eax, [esi + 1]
push eax
call fcn.00417ff0
add esp, 4
mov edx, eax
mov dword [ebp - 0x54], edx
test esi, esi
jle 0x404854
lea esi, [ebp - 0x4b]
mov ecx, edx
sub esi, edx
mov edx, dword [ebp - 0x58]
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x404840
mov edx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
mov ecx, edx
mov byte [edx + esi], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404860
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x1f0]
call fcn.00408f50
push dword [ebp - 0x54]
call fcn.00417850
push 8
mov word [edi + 0x2c], 1
mov byte [edi + 0x2e], 0
call fcn.00417aa0
mov dword [ebp - 0x54], eax
mov dword [eax], edi
mov dword [eax + 4], 0x404e20
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x40cf10
push 0
push 0
call fcn.00420670
add esp, 0x20
mov dword [ebp - 0x68], eax
test eax, eax
je 0x404a08
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x404a01
push ecx
push eax
call fcn.004164f0
add esp, 8
test eax, eax
jne 0x4049e2
xorps xmm0, xmm0
push 8
movlpd qword [ebp - 0x68], xmm0
call fcn.00417aa0
mov dword [ebp - 0x54], eax
mov dword [eax], edi
mov dword [eax + 4], 0x404f10
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x40cf10
push 0
push 0
call fcn.00420670
add esp, 0x1c
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4049f3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x404a01
push ecx
push eax
call fcn.004164f0
add esp, 8
test eax, eax
jne 0x4049e8
push 0x485f28
sub esp, 0x1c
mov byte [0x48bbc5], 1
mov eax, esp
mov dword [ebp - 0x54], esp
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [ebp - 0x60], xmm0
push eax
call fcn.004042c0
push str.INFO_:_Sucessfully_connected_to
mov ecx, 0x48bbc0
mov byte [ebp - 4], 4
call fcn.0040ae30
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040b1a0
mov ecx, eax
call fcn.0040ae30
cmp dword [ebp - 0x5c], 0
jne 0x4049ee
cmp dword [ebp - 0x64], 0
jne 0x4049ee
xor eax, eax
jmp 0x404692
push 0x485f28
push str._Occured_while_connecting
mov byte [0x48bbc5], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ERROR_:_Socket_error
mov ecx, 0x48bbc0
call fcn.0040ae30
mov ecx, eax
call fcn.0040b2f0
mov ecx, eax
call fcn.0040ae30
jmp 0x404686
push eax
call fcn.00414c00
push eax
call fcn.00414c00
call fcn.0042b2a0
push 6
mov dword [ebp - 0x5c], 0
call fcn.00414c60
push 1
call fcn.00414c60
push 6
mov dword [ebp - 0x64], 0
call fcn.00414c60
int3