Function at 0x484c90
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 0x484c99
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 0x484f1e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4922c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jle 0x484cee
xor ebx, ebx
lea ecx, [ebp - 0x2034]
mov eax, dword [0x4922c4]
mov eax, dword [eax]
mov edx, ebx
call fcn.004650d4
mov eax, dword [ebp - 0x2034]
call fcn.004059dc
mov edx, dword [0x4925e8]
mov dword [edx], eax
mov eax, dword [0x4922c4]
mov eax, dword [eax]
mov edx, ebx
call fcn.00464ff8
mov edx, dword [0x49248c]
mov word [edx], ax
inc ebx
push 0xc8
call sub.kernel32.dll_Sleep_1
jmp 0x484d51
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 0x484d39
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 [0x4925a8]
mov dword [edx], eax
mov eax, dword [0x4925a8]
cmp dword [eax], 0xffffffff
je 0x484cdb
mov word [ebp - 0x14], 2
mov eax, dword [0x49248c]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [0x4925e8]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebp - 0x10], esi
inc esi
jne 0x484de5
mov eax, dword [0x4925e8]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x484cdb
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 [0x4925a8]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x484ec1
mov eax, dword [0x49252c]
mov byte [eax], 1
jmp 0x484eb5
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 [0x4925a8]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_recv
mov esi, eax
test esi, esi
jg 0x484e49
mov eax, edi
call fcn.00484bd8
jmp 0x484eb5
lea eax, [ebp - 0x203c]
lea edx, [ebp - 0x2014]
call fcn.00405e3c
mov eax, dword [ebp - 0x203c]
lea edx, [ebp - 0x2038]
call fcn.00409bc0
mov edx, dword [ebp - 0x2038]
lea eax, [ebp - 4]
call fcn.004057d4
lea ecx, [ebp - 0x2040]
mov edx, dword [0x492610]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00461610
mov edx, dword [ebp - 0x2040]
lea eax, [ebp - 4]
call fcn.004055c8
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x484ea9
sub ebx, 4
mov ebx, dword [ebx]
test ebx, ebx
jle 0x484eb5
mov eax, dword [ebp - 4]
call fcn.00474f94
cmp byte [edi + 0xd], 0
je 0x484e0d
jmp 0x484ee2
push 1
mov eax, dword [0x4925a8]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [0x4925a8]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_closesocket
jmp 0x484cdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484f25
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