Function at 0x41e2ed
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x44e4a4]
push ebx
push esi
shr eax, 0x11
mov ebx, edx
mov dword [ebp - 0x428], ebx
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test al, 1
je 0x41e3fb
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, eax
mov ecx, edx
mov dword [ebp - 0x424], edx
call fcn.0040fdd6
test al, al
je 0x41e358
mov dword [ebx], 0x7530
mov dl, 0xc
push 0
push 0xff
mov byte [edi], 1
mov ecx, esi
jmp 0x41e60a
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x420]
push 4
pop ebx
push ebx
push eax
push 0x1005
mov edi, 0xffff
mov dword [ebp - 0x420], 0x64
push edi
push edx
call esi
push ebx
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x1f4
push eax
push 0x1006
push edi
push dword [ebp - 0x424]
call esi
push ebx
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x10000
push eax
push 0x1002
push edi
push dword [ebp - 0x424]
call esi
push ebx
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0x100
push ecx
push 0x1001
push edi
push dword [ebp - 0x424]
call esi
mov ecx, dword [ebp - 0x424]
mov byte [0x461c5c], 1
mov dword [0x461c58], ecx
mov al, 1
jmp 0x41e64c
movzx eax, word [0x461abc]
lea ecx, [ebp - 0x41c]
mov edx, dword [0x461ab4]
push 0x2000
push 0xc00000
push eax
call fcn.00416987
mov edx, eax
mov dword [ebp - 0x424], edx
cmp edx, 0xffffffff
je 0x41e45a
test edx, edx
je 0x41e45a
push 0x10
lea eax, [ebp - 0x41c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x41e454
lea ecx, [ebp - 0x424]
call fcn.0040fe11
mov edx, dword [ebp - 0x424]
mov ecx, edx
call fcn.0040fdd6
test al, al
jne 0x41e33f
lea ecx, [ebp - 0x40c]
mov byte [0x461c5c], al
mov dword [0x461c58], edx
call fcn.00416c64
mov ecx, dword [0x461a88]
mov edx, eax
push 4
pop ebx
mov byte [edx], 1
inc edx
mov dword [edx], ecx
add edx, ebx
mov ecx, dword [esi + 0x40]
mov dword [edx], ecx
add edx, ebx
mov eax, dword [esi + 0x38]
mov dword [edx], eax
add edx, ebx
mov eax, dword [esi + 0x10]
mov dword [edx], eax
add edx, ebx
mov eax, dword [esi + 0x34]
mov dword [edx], eax
add edx, ebx
mov eax, dword [esi + 0x30]
mov dword [edx], eax
add edx, ebx
mov eax, dword [esi + 4]
mov dword [edx], eax
mov ax, word [esi + 8]
mov word [edx + ebx], ax
lea eax, [edx + 2]
mov ecx, dword [0x461c58]
lea edx, [ebp - 0x40c]
add eax, ebx
push eax
call fcn.00419d33
pop ecx
test al, al
jne 0x41e4f1
mov ecx, dword [ebp - 0x428]
mov dl, 0xd
mov dword [ecx], 0x7530
jmp 0x41e347
push ebx
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x493e0
push eax
push 0x1006
push 0xffff
push dword [0x461c58]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [0x461c58]
lea eax, [ebp - 0x420]
push eax
lea edx, [ebp - 0x40c]
call fcn.00419c62
test ax, ax
jne 0x41e567
mov eax, dword [ebp - 0x420]
test eax, eax
jle 0x41e554
push str.History_Connection_did_not_complete
push 2
cdq
push 2
push edx
push eax
call fcn.00420600
add esp, 0x14
mov ecx, dword [ebp - 0x428]
mov dl, 7
mov dword [ecx], 0xea60
jmp 0x41e347
cmp byte [ebp - 0x40c], 0
je 0x41e583
mov ecx, dword [ebp - 0x428]
mov dl, 0xe
mov dword [ecx], 0xea60
jmp 0x41e347
mov edx, dword [ebp - 0x40b]
mov eax, dword [ebp - 0x40a]
test dl, dl
jne 0x41e5ac
xor ecx, ecx
or ecx, dword [ebp - 0x406]
push eax
push ecx
mov ecx, esi
call fcn.00410532
add esp, 8
jmp 0x41e3f4
push 0x3c
pop ecx
cmp eax, ecx
cmova eax, ecx
mov ecx, dword [ebp - 0x428]
imul eax, eax, 0x3e8
mov dword [ecx], eax
movzx eax, dl
dec eax
sub eax, 1
je 0x41e629
sub eax, 1
je 0x41e617
push 0
sub eax, 1
je 0x41e611
dec eax
mov ecx, esi
sub eax, 1
je 0x41e5ed
push 0xff
sub eax, 1
jne 0x41e640
mov dl, 9
jmp 0x41e642
cmp dword [ebp - 0x406], 0
setne al
mov byte [edi], al
test al, al
je 0x41e606
push 0xff
mov dl, 7
jmp 0x41e60a
push 0
mov dl, 8
call fcn.0041055a
jmp 0x41e64a
push 3
mov dl, 1
jmp 0x41e61d
push 1
push 5
mov dl, 0x15
mov ecx, esi
call fcn.0041055a
mov byte [edi], 0
jmp 0x41e64a
and dword [0x461a88], 0
xor cl, cl
call fcn.0041b023
push 0
push 0xff
mov ecx, esi
mov dl, 0x15
call fcn.0041055a
mov byte [edi], 1
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret