Function at 0x486c6c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x486c75
mov eax, dword [ebp - 4]
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2040], edx
mov dword [ebp - 0x2038], edx
mov dword [ebp - 0x203c], edx
mov dword [ebp - 0x2034], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x486efa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x494808]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jle 0x486cca
xor ebx, ebx
lea ecx, [ebp - 0x2034]
mov eax, dword [0x494808]
mov eax, dword [eax]
mov edx, ebx
call fcn.004650f8
mov eax, dword [ebp - 0x2034]
call fcn.004059dc
mov edx, dword [0x494b34]
mov dword [edx], eax
mov eax, dword [0x494808]
mov eax, dword [eax]
mov edx, ebx
call fcn.0046501c
mov edx, dword [0x4949d8]
mov word [edx], ax
inc ebx
push 0xc8
call sub.kernel32.dll_Sleep_1
jmp 0x486d2d
lea eax, [ebp - 0x2030]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x2030]
push eax
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2030]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x486d15
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.00403af4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [0x494af4]
mov dword [edx], eax
mov eax, dword [0x494af4]
cmp dword [eax], 0xffffffff
je 0x486cb7
mov word [ebp - 0x14], 2
mov eax, dword [0x4949d8]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [0x494b34]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebp - 0x10], esi
inc esi
jne 0x486dc1
mov eax, dword [0x494b34]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x486cb7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x494af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x486e9d
mov eax, dword [0x494a78]
mov byte [eax], 1
jmp 0x486e91
lea eax, [ebp - 0x2014]
xor ecx, ecx
mov edx, 0x2000
call fcn.00403af4
push 0
push 0x2000
lea eax, [ebp - 0x2014]
push eax
mov eax, dword [0x494af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_recv
mov esi, eax
test esi, esi
jg 0x486e25
mov eax, edi
call fcn.00486bb4
jmp 0x486e91
lea eax, [ebp - 0x203c]
lea edx, [ebp - 0x2014]
call fcn.00405e3c
mov eax, dword [ebp - 0x203c]
lea edx, [ebp - 0x2038]
call fcn.00409bd0
mov edx, dword [ebp - 0x2038]
lea eax, [ebp - 4]
call fcn.004057d4
lea ecx, [ebp - 0x2040]
mov edx, dword [0x494b5c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00461634
mov edx, dword [ebp - 0x2040]
lea eax, [ebp - 4]
call fcn.004055c8
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x486e85
sub ebx, 4
mov ebx, dword [ebx]
test ebx, ebx
jle 0x486e91
mov eax, dword [ebp - 4]
call fcn.00476008
cmp byte [edi + 0xd], 0
je 0x486de9
jmp 0x486ebe
push 1
mov eax, dword [0x494af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [0x494af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_closesocket
jmp 0x486cb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486f01
lea eax, [ebp - 0x2040]
call fcn.00405530
lea eax, [ebp - 0x203c]
mov edx, 2
call fcn.00405d40
lea eax, [ebp - 0x2034]
call fcn.00405530
lea eax, [ebp - 4]
call fcn.00405530
ret