Function at 0x46f0f0
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 0x4d743b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x517b80]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.004a2380
push 0xc
mov edi, eax
call fcn.004a71b8
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x46f17c
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
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 0x46f17e
test edi, edi
jne 0x46f570
jmp 0x46f17e
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], esi
test esi, esi
je 0x46f570
mov eax, dword [esi + 4]
mov byte [ebp - 4], 2
test eax, eax
jne 0x46f1a2
push dword [esi]
call fcn.004a8ab0
mov dword [esi + 4], eax
push eax
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 0x46f1ef
mov eax, dword [esi]
test eax, eax
je 0x46f1cd
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x46f1e4
push eax
call fcn.004a71f6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a71e8
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x46f4ad
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x46f4ad
mov ebx, dword [edi]
push 0xc
call fcn.004a71b8
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x46f248
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004a8bd0
mov dword [esi], eax
jmp 0x46f24a
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x46f570
push dword [esi]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xb
call fcn.004a2300
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00402fd0
mov eax, dword [edi + 0xc]
push 0
push 1
push 2
mov eax, dword [eax]
mov edi, dword [eax]
mov dword [ebp - 0x14], 0
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46f2a6
push 0x4f422c
call fcn.004a27e0
push eax
push 0x4f422c
jmp 0x46f303
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
mov eax, 2
movlpd qword [ebp - 0x1c], xmm0
push 0x5ab3
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x46f2f3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x4f42d8
call fcn.004a27e0
push eax
push 0x4f42d8
jmp 0x46f303
push 0
mov dword [0x517484], esi
call fcn.004a27e0
push eax
push 0
call fcn.004a29e0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x14]
call fcn.004a2a40
test eax, eax
je 0x46f47e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push 0x4f46ec
push eax
call fcn.004a23a0
mov esi, eax
push 0x4f472c
mov byte [ebp - 4], 0xd
call fcn.004a27e0
push eax
push 0x4f472c
call fcn.004a29e0
add esp, 0x18
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004a24b0
mov esi, eax
push 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xf
push 0x5ab3
push eax
call fcn.00469740
add esp, 0xc
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
call fcn.004a24b0
mov esi, eax
push 0x4f4744
mov byte [ebp - 4], 0x11
call fcn.004a27e0
push eax
push 0x4f4744
call fcn.004a29e0
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.004a24b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x13
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.004a24b0
push 0x30
push 0x4e4e40
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.004a2380
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 0x46f40a
call fcn.004a2a20
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x46f41a
call fcn.004a2a20
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 0x17
test ecx, ecx
je 0x46f42a
call fcn.004a2a20
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x18
test ecx, ecx
je 0x46f43a
call fcn.004a2a20
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 0x19
test ecx, ecx
je 0x46f44a
call fcn.004a2a20
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x1a
test ecx, ecx
je 0x46f45a
call fcn.004a2a20
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x1b
test ecx, ecx
je 0x46f46a
call fcn.004a2a20
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x1c
test ecx, ecx
je 0x46f47a
call fcn.004a2a20
xor bl, bl
jmp 0x46f494
push 0
mov dword [0x52e024], 2
call fcn.00470600
add esp, 4
mov bl, 1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1f
test ecx, ecx
je 0x46f53f
call fcn.004a2a20
jmp 0x46f53f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x30]
push 0x4f4698
push eax
call fcn.004a23a0
mov esi, eax
push 0x4e6748
mov byte [ebp - 4], 3
call fcn.004a27e0
push eax
push 0x4e6748
call fcn.004a29e0
add esp, 0x18
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004a24b0
push 0x30
push 0x4e4e40
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004a2380
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x46f51d
call fcn.004a2a20
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x46f52d
call fcn.004a2a20
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x46f53d
call fcn.004a2a20
xor bl, bl
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0x20
test ecx, ecx
je 0x46f552
call fcn.004a2a20
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.004a71aa
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004a8a90
int3