Function at 0x4898e5
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
push 0
call fcn.0048916c
pop ecx
push eax
call fcn.00489160
pop ecx
mov dword [ebp - 4], 1
mov ax, word [0x4933a0]
push eax
push 0x4933a2
lea edx, [ebp - 8]
push edx
call fcn.00489511
add esp, 0xc
test eax, eax
jne 0x489942
movzx ecx, word [0x4933a0]
push ecx
push 0x4933a2
push 0x495663
call fcn.00489374
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x489bba
push 0x1000
call fcn.00489140
pop ecx
mov edi, eax
push 0x1000
call fcn.00489140
pop ecx
mov dword [ebp - 0xc], eax
push 0x1000
push 0
push edi
call fcn.00489128
add esp, 0xc
push 0x1000
push 0
push dword [ebp - 0xc]
call fcn.00489128
add esp, 0xc
push 6
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00489128
add esp, 0xc
mov byte [ebp - 0x14], 0x55
call fcn.00489178
mov ecx, 0x28
cdq
idiv ecx
mov byte [ebp - 0x13], dl
call fcn.00489178
mov ecx, 0x28
cdq
idiv ecx
mov byte [ebp - 0x12], dl
call fcn.00489178
mov ecx, 0x28
cdq
idiv ecx
mov byte [ebp - 0x11], dl
mov al, byte [ebp - 0x13]
add al, byte [ebp - 0x12]
add al, byte [ebp - 0x11]
mov byte [ebp - 0x10], al
xor esi, esi
mov eax, esi
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
jne 0x489a31
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x4934a8]
imul edx, dword [0x4934a4], 0xea60
cmp eax, edx
jbe 0x489a04
mov dword [ebp - 4], 0x3ea
jmp 0x489b95
push 0
push 6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call sub.wsock32.dll_send
mov ebx, eax
inc ebx
jne 0x489a31
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x489a31
mov dword [ebp - 4], 2
jmp 0x489b95
push 0x1000
push 0
push edi
call fcn.00489128
add esp, 0xc
push 1
push dword [ebp - 8]
call fcn.00489455
add esp, 8
dec eax
jne 0x489af0
push 0
push 0x1000
push edi
push dword [ebp - 8]
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x489ab1
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x489ab1
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x489ab1
cmp eax, 0x2733
je 0x489ab1
cmp eax, 0x274c
je 0x489ab1
call sub.wsock32.dll_WSAGetLastError
push eax
push 0x49568d
call fcn.00489374
add esp, 8
mov dword [ebp - 4], 3
jmp 0x489b95
test ebx, ebx
jg 0x489ae1
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x274c
je 0x489ae1
call sub.wsock32.dll_WSAGetLastError
push eax
push ebx
push 0x4956a3
call fcn.00489374
add esp, 0xc
mov dword [ebp - 4], 3
jmp 0x489b95
push edi
push ebx
push 0x4956e6
call fcn.00489374
add esp, 0xc
mov eax, dword [0x4934c8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4934cc]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4934d0]
mov dword [ebp - 0x1c], eax
push 0xc
push edi
lea edx, [ebp - 0x24]
push edx
call fcn.00489114
add esp, 0xc
cmp byte [ebp - 0x24], 0x55
jne 0x489b75
cmp byte [ebp - 0x23], 0xe8
jne 0x489b36
xor ecx, ecx
mov cl, byte [ebp - 0x22]
add ecx, 0x3e8
mov dword [ebp - 4], ecx
jmp 0x489b95
cmp byte [ebp - 0x23], 0xe9
jne 0x489b75
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x24]
push edx
push 0x489766
push 0
push 0
call sub.kernel32.dll_CreateThread_1
test eax, eax
jne 0x489b6f
push 0x4956fc
call fcn.00489374
pop ecx
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x489b75
push eax
call sub.kernel32.dll_CloseHandle
push 0xbb8
call sub.kernel32.dll_Sleep_1
mov eax, esi
inc esi
mov ecx, 0x3e8
cdq
idiv ecx
mov esi, edx
cmp esi, 0xffffffff
jg 0x4899d1
lea eax, [ebp - 8]
call fcn.00489379
cmp dword [ebp - 0xc], 0
je 0x489bac
push dword [ebp - 0xc]
call fcn.00489150
pop ecx
test edi, edi
je 0x489bb7
push edi
call fcn.00489150
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret