Function at 0x46bf50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d58eb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0049f770
push 0xc
mov edi, eax
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x46bfce
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x46bfd0
test edi, edi
jne 0x46c3b3
jmp 0x46bfd0
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], esi
test esi, esi
je 0x46c3b3
cmp dword [esi + 4], 0
mov byte [ebp - 4], 2
jne 0x46bff3
push dword [esi]
call fcn.004a5e80
mov dword [esi + 4], eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x46c042
mov eax, dword [esi]
test eax, eax
je 0x46c020
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x46c037
push eax
call fcn.004a447f
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a4471
add esp, 8
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
test edi, edi
je 0x46c2ee
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x46c2ee
mov eax, dword [edi]
push 0xc
mov dword [ebp - 0x24], eax
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x46c094
push dword [ebp - 0x24]
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004a5fa0
mov dword [esi], eax
jmp 0x46c096
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], esi
test esi, esi
je 0x46c3b3
push dword [esi]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xb
call fcn.0049f6f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00403090
mov eax, dword [edi + 0xc]
push 0
push 1
push 2
mov eax, dword [eax]
mov edi, dword [eax]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46c0eb
push 0x4f114c
call fcn.0049fbd0
push eax
push 0x4f114c
jmp 0x46c148
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
mov eax, 2
movlpd qword [ebp - 0x18], xmm0
push 0x5ab3
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x46c138
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x4f11f8
call fcn.0049fbd0
push eax
push 0x4f11f8
jmp 0x46c148
push 0
mov dword [0x5174a4], esi
call fcn.0049fbd0
push eax
push 0
call fcn.0049fd60
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xc
call ebx
lea ecx, [ebp - 0x2c]
call fcn.0049fdc0
test eax, eax
je 0x46c2bf
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push 0x4f160c
push eax
call fcn.0049f790
mov esi, eax
push 0x4f164c
mov byte [ebp - 4], 0xd
call fcn.0049fbd0
push eax
push 0x4f164c
call fcn.0049fd60
add esp, 0x18
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.0049f8a0
mov esi, eax
push 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xf
push 0x5ab3
push eax
call fcn.00466f80
add esp, 0xc
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
call fcn.0049f8a0
mov esi, eax
push 0x4f1664
mov byte [ebp - 4], 0x11
call fcn.0049fbd0
push eax
push 0x4f1664
call fcn.0049fd60
add esp, 0xc
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0049f8a0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0049f8a0
push 0x30
push 0x4e23b8
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.0049f770
push eax
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x46c24b
call fcn.0049fda0
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x46c25b
call fcn.0049fda0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 0x17
test ecx, ecx
je 0x46c26b
call fcn.0049fda0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x18
test ecx, ecx
je 0x46c27b
call fcn.0049fda0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 0x19
test ecx, ecx
je 0x46c28b
call fcn.0049fda0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x1a
test ecx, ecx
je 0x46c29b
call fcn.0049fda0
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0x1b
test ecx, ecx
je 0x46c2ab
call fcn.0049fda0
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x1c
test ecx, ecx
je 0x46c2bb
call fcn.0049fda0
xor bl, bl
jmp 0x46c2d5
push 0
mov dword [0x51c784], 2
call fcn.0046d440
add esp, 4
mov bl, 1
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x1f
test ecx, ecx
je 0x46c382
call fcn.0049fda0
jmp 0x46c382
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x30]
push 0x4f15b8
push eax
call fcn.0049f790
mov esi, eax
push 0x4e3d28
mov byte [ebp - 4], 3
call fcn.0049fbd0
push eax
push 0x4e3d28
call fcn.0049fd60
add esp, 0x18
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049f8a0
push 0x30
push 0x4e23b8
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0049f770
push eax
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x46c360
call fcn.0049fda0
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x46c370
call fcn.0049fda0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x46c380
call fcn.0049fda0
xor bl, bl
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0x20
test ecx, ecx
je 0x46c395
call fcn.0049fda0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004a5e60
int3