Function at 0x493279
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.00492b00
pop ecx
push eax
call fcn.00492af4
pop ecx
mov dword [ebp - 4], 1
mov ax, word [0x49bde8]
push eax
push 0x49bdea
lea edx, [ebp - 8]
push edx
call fcn.00492ea5
add esp, 0xc
test eax, eax
jne 0x4932d6
movzx ecx, word [0x49bde8]
push ecx
push 0x49bdea
push 0x49e0ab
call fcn.00492d08
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x49354e
push 0x1000
call fcn.00492ad4
pop ecx
mov edi, eax
push 0x1000
call fcn.00492ad4
pop ecx
mov dword [ebp - 0xc], eax
push 0x1000
push 0
push edi
call fcn.00492abc
add esp, 0xc
push 0x1000
push 0
push dword [ebp - 0xc]
call fcn.00492abc
add esp, 0xc
push 6
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00492abc
add esp, 0xc
mov byte [ebp - 0x14], 0x55
call fcn.00492b0c
mov ecx, 0x28
cdq
idiv ecx
mov byte [ebp - 0x13], dl
call fcn.00492b0c
mov ecx, 0x28
cdq
idiv ecx
mov byte [ebp - 0x12], dl
call fcn.00492b0c
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 0x4933c5
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x49bef0]
imul edx, dword [0x49beec], 0xea60
cmp eax, edx
jbe 0x493398
mov dword [ebp - 4], 0x3ea
jmp 0x493529
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 0x4933c5
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4933c5
mov dword [ebp - 4], 2
jmp 0x493529
push 0x1000
push 0
push edi
call fcn.00492abc
add esp, 0xc
push 1
push dword [ebp - 8]
call fcn.00492de9
add esp, 8
dec eax
jne 0x493484
push 0
push 0x1000
push edi
push dword [ebp - 8]
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x493445
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x493445
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x493445
cmp eax, 0x2733
je 0x493445
cmp eax, 0x274c
je 0x493445
call sub.wsock32.dll_WSAGetLastError
push eax
push 0x49e0d5
call fcn.00492d08
add esp, 8
mov dword [ebp - 4], 3
jmp 0x493529
test ebx, ebx
jg 0x493475
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x274c
je 0x493475
call sub.wsock32.dll_WSAGetLastError
push eax
push ebx
push 0x49e0eb
call fcn.00492d08
add esp, 0xc
mov dword [ebp - 4], 3
jmp 0x493529
push edi
push ebx
push 0x49e12e
call fcn.00492d08
add esp, 0xc
mov eax, dword [0x49bf10]
mov dword [ebp - 0x24], eax
mov eax, dword [0x49bf14]
mov dword [ebp - 0x20], eax
mov eax, dword [0x49bf18]
mov dword [ebp - 0x1c], eax
push 0xc
push edi
lea edx, [ebp - 0x24]
push edx
call fcn.00492aa8
add esp, 0xc
cmp byte [ebp - 0x24], 0x55
jne 0x493509
cmp byte [ebp - 0x23], 0xe8
jne 0x4934ca
xor ecx, ecx
mov cl, byte [ebp - 0x22]
add ecx, 0x3e8
mov dword [ebp - 4], ecx
jmp 0x493529
cmp byte [ebp - 0x23], 0xe9
jne 0x493509
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x24]
push edx
push 0x4930fa
push 0
push 0
call sub.kernel32.dll_CreateThread_1
test eax, eax
jne 0x493503
push 0x49e144
call fcn.00492d08
pop ecx
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x493509
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 0x493365
lea eax, [ebp - 8]
call fcn.00492d0d
cmp dword [ebp - 0xc], 0
je 0x493540
push dword [ebp - 0xc]
call fcn.00492ae4
pop ecx
test edi, edi
je 0x49354b
push edi
call fcn.00492ae4
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret