Function at 0x486e20
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 0x486e29
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 - 0x203c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x487114
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x495808]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jle 0x486e7e
xor ebx, ebx
lea ecx, [ebp - 0x203c]
mov eax, dword [0x495808]
mov eax, dword [eax]
mov edx, ebx
call fcn.00465100
mov eax, dword [ebp - 0x203c]
call fcn.004059dc
mov edx, dword [0x495b34]
mov dword [edx], eax
mov eax, dword [0x495808]
mov eax, dword [eax]
mov edx, ebx
call fcn.00465024
mov edx, dword [0x4959d8]
mov word [edx], ax
inc ebx
push 0xc8
call sub.kernel32.dll_Sleep_2
jmp 0x486ee1
lea eax, [ebp - 0x2038]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x2038]
push eax
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2038]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x486ec9
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403af4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [0x495af4]
mov dword [edx], eax
mov eax, dword [0x495af4]
cmp dword [eax], 0xffffffff
je 0x486e6b
mov word [ebp - 0x1c], 2
mov eax, dword [0x4959d8]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1a], ax
mov eax, dword [0x495b34]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x486f76
mov eax, dword [0x495b34]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x486e6b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x4870ac
test esi, esi
je 0x486f9c
mov eax, esi
call fcn.0041fec4
mov cl, 1
mov dl, 1
mov eax, dword [0x486b54]
call fcn.0041f9e0
mov esi, eax
mov byte [esi + 0xf], 1
mov dl, 5
mov eax, esi
call fcn.0041fbec
mov edx, dword [0x495af4]
mov edx, dword [edx]
mov eax, esi
call fcn.00486cf4
mov edx, edi
mov eax, esi
call fcn.00486cf8
mov eax, esi
call fcn.0041fe9c
mov eax, dword [0x495a78]
mov byte [eax], 1
jmp 0x4870a0
lea eax, [ebp - 0x201c]
xor ecx, ecx
mov edx, 0x2000
call fcn.00403af4
push 0
push 0x2000
lea eax, [ebp - 0x201c]
push eax
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x487027
mov eax, edi
call fcn.00486d68
jmp 0x486e6b
lea eax, [ebp - 0x2044]
lea edx, [ebp - 0x201c]
call fcn.00405e3c
mov eax, dword [ebp - 0x2044]
lea edx, [ebp - 0x2040]
call fcn.00409bd8
mov edx, dword [ebp - 0x2040]
lea eax, [ebp - 4]
call fcn.004057d4
lea ecx, [ebp - 0x2048]
mov edx, dword [0x495b5c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.0046163c
mov edx, dword [ebp - 0x2048]
lea eax, [ebp - 4]
call fcn.004055c8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x487092
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4870a0
mov eax, dword [ebp - 4]
call fcn.00476010
cmp byte [edi + 0xd], 0
je 0x486fe5
jmp 0x4870d8
test esi, esi
je 0x4870b7
mov eax, esi
call fcn.0041fec4
push 1
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_closesocket
jmp 0x486e6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48711b
lea eax, [ebp - 0x2048]
call fcn.00405530
lea eax, [ebp - 0x2044]
mov edx, 2
call fcn.00405d40
lea eax, [ebp - 0x203c]
call fcn.00405530
lea eax, [ebp - 4]
call fcn.00405530
ret