Function at 0x483d5c
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 0x483d65
mov eax, dword [ebp - 4]
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2048], edx
mov dword [ebp - 0x2040], edx
mov dword [ebp - 0x2044], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x484028
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4912d4]
mov eax, dword [eax]
call fcn.00406740
xor edx, edx
push ebp
push 0x483e43
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, ebx
jg 0x483dc8
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [0x4912d4]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
call fcn.004055c8
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x484040
call fcn.00405b0c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405a28
mov edx, dword [ebp - 8]
mov eax, 0x484040
call fcn.00405b0c
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405a68
mov eax, dword [ebp - 8]
call fcn.00409e4c
mov edx, dword [0x4914bc]
mov word [edx], ax
mov eax, dword [ebp - 0xc]
call fcn.004059c0
mov edx, dword [0x491668]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483e4d
push 0x1f4
call fcn.0040f1d4
jmp 0x483e71
lea eax, [ebp - 0x203c]
push eax
call sub.KERNEL32.DLL_VerLanguageNameA
lea eax, [ebp - 0x203c]
push eax
call fcn.00407ff4
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x203c]
push eax
call sub.KERNEL32.DLL_GetTickCount
test eax, eax
jne 0x483e59
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403af4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [0x491610]
mov dword [edx], eax
mov eax, dword [0x491610]
cmp dword [eax], 0xffffffff
je 0x483e4d
mov word [ebp - 0x20], 2
mov eax, dword [0x4914bc]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, dword [0x491668]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 0x1c], ebx
inc ebx
jne 0x483f01
mov eax, dword [0x491668]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x483e4d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x491610]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x483fd1
mov eax, dword [0x49156c]
mov byte [eax], 1
jmp 0x483fc2
lea eax, [ebp - 0x2020]
xor ecx, ecx
mov edx, 0x2000
call fcn.00403af4
push 0
push 0x2000
lea eax, [ebp - 0x2020]
push eax
mov eax, dword [0x491610]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x483f66
mov eax, dword [ebp - 0x10]
call fcn.00483cb8
jmp 0x483fc2
lea eax, [ebp - 0x2044]
lea edx, [ebp - 0x2020]
call fcn.00405e20
mov eax, dword [ebp - 0x2044]
lea edx, [ebp - 0x2040]
call fcn.00409b40
mov edx, dword [ebp - 0x2040]
lea eax, [ebp - 4]
call fcn.004057b8
lea ecx, [ebp - 0x2048]
mov edx, dword [0x491698]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.0046153c
mov edx, dword [ebp - 0x2048]
lea eax, [ebp - 4]
call fcn.004055c8
mov eax, dword [ebp - 4]
call fcn.0047440c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x483f29
jmp 0x483ff2
push 1
mov eax, dword [0x491610]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [0x491610]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_closesocket
jmp 0x483e4d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48402f
lea eax, [ebp - 0x2048]
call fcn.00405530
lea eax, [ebp - 0x2044]
mov edx, 2
call fcn.00405d24
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405554
ret