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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x44a00c]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 0
mov esi, dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x58]
sub eax, dword [edi + 0x54]
sar eax, 4
test eax, eax
je 0x41271e
mov eax, dword [edi + 0x58]
xor ecx, ecx
sub eax, dword [edi + 0x54]
sar eax, 4
test eax, eax
je 0x41271e
movzx eax, word [esi + 0x34]
mov edx, dword [edi + 0x54]
nop dword [eax + eax]
cmp ax, word [edx]
je 0x4127df
mov eax, dword [edi + 0x58]
inc ecx
sub eax, dword [edi + 0x54]
add edx, 0x10
sar eax, 4
cmp ecx, eax
movzx eax, word [esi + 0x34]
jb 0x412700
mov eax, dword [esp + 0x14]
push dword [edi + 0x48]
xorps xmm0, xmm0
mov ecx, 2
movaps xmmword [esp + 0x54], xmm0
mov word [esp + 0x54], cx
mov dword [esp + 0x58], eax
mov ax, word [esi + 0x34]
mov word [esp + 0x56], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
xor esi, esi
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0xc]
sar eax, 5
test eax, eax
je 0x41279b
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x1c], ecx
lea ecx, [eax + 0xc]
nop dword [eax]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx - 4]
jne 0x41278a
mov eax, dword [esp + 0x24]
mov ax, word [eax + 0x2c]
cmp ax, word [ecx]
je 0x412832
mov eax, dword [edx + 0x10]
inc esi
sub eax, dword [edx + 0xc]
add ecx, 0x20
sar eax, 5
cmp esi, eax
jb 0x412770
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x20], eax
test eax, eax
jns 0x412881
push str._proxy:_socket_UDP_error_n
call fcn.00401410
add esp, 4
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x54]
shl ecx, 4
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + edx + 8]
sub eax, dword [ecx + edx + 4]
sar eax, 2
test eax, eax
je 0x41271e
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 eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x54]
mov eax, dword [ecx + eax + 4]
mov eax, dword [eax + edx*4]
jmp 0x412722
shl esi, 5
add esi, dword [edx + 0xc]
je 0x41279b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x412849
mov dword [esi + 0x18], eax
push 0x10
lea eax, [esp + 0x54]
push eax
push 0
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
push 0
call fcn.004230b2
mov ecx, dword [esi + 4]
add esp, 4
test ecx, ecx
je 0x412a65
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
jmp 0x412a65
mov esi, dword [esp + 0x24]
movzx eax, word [esi + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [esp + 0x24]
push str.proxy_Udp_in_Tcp:_Create_UDP_socket_d__port_d_n
call fcn.00401410
add esp, 0xc
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x2c]
push eax
push 0x8004667e
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [esp + 0x54]
push eax
push 0
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_sendto]
push 0x3c
call fcn.0041be73
add esp, 4
mov dword [esp + 0x14], eax
push 0x3c
push 0
push eax
call fcn.0041ea80
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edx], 2
mov ecx, dword [esi + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov dword [edx + 0x38], 0
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x412926
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41293f
push edx
push 0x412680
push dword [esp + 0x28]
call fcn.004162c0
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
jne 0x41296b
push str.udp_basenet_associate_client_err_n
call fcn.00401410
add esp, 4
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edx + 0xa7], 0
mov eax, dword [edi + 0x18]
je 0x412982
mov byte [edx + 0x54], 0
test eax, eax
jle 0x412982
mov dword [edx + 0x50], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
mov esi, dword [ecx + 0x10]
mov eax, dword [esi + 0x10]
cmp edx, eax
mov edx, dword [esp + 0x18]
jae 0x412a08
lea ecx, [esp + 0x30]
cmp dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x14]
ja 0x412a08
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x30]
sub eax, dword [esi + 0xc]
sar eax, 5
cmp edx, dword [esi + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jne 0x4129dd
push ecx
lea ecx, [esi + 0xc]
call fcn.00413dd0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
je 0x412a2f
mov edx, dword [esp + 0x1c]
shl eax, 5
add eax, dword [esi + 0xc]
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax + 0x10]
mov eax, edx
mov edx, dword [esp + 0x18]
jmp 0x412a2b
cmp eax, dword [esi + 0x14]
jne 0x412a21
push ecx
lea ecx, [esi + 0xc]
call fcn.00413dd0
mov edx, dword [esp + 0x18]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412a2f
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
add dword [esi + 0x10], 0x20
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x20]
add ecx, 0xffffffe0
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 8], eax
mov ax, word [edx + 0x2c]
mov word [ecx + 0xc], ax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 8], ecx
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 0xc