Function at 0x4b9400
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaec
push ebx
xor edx, edx
mov dword [ebp - 0x508], edx
mov dword [ebp - 0x50c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b9b4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jle 0x4b9af9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, 0x3e8
xor edx, edx
div ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.004b9064
mov eax, dword [ebp - 0xc]
call fcn.00406270
inc eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1e4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4b9af9
xor eax, eax
push ebp
push 0x4b9af2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4b72bc]
call fcn.00406444
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x4b72bc]
call fcn.00406444
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x4b72bc]
call fcn.00406444
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4b72ec]
call fcn.00406444
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4b728c]
call fcn.00406444
add esp, 4
xor eax, eax
push ebp
push 0x4b9ab2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x4b9586
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
test al, al
je 0x4b9586
call fcn.00404930
call fcn.00404930
jmp 0x4b9af9
mov eax, dword [ebp - 4]
cmp word [eax + 0x32], 0
je 0x4b9693
lea eax, [ebp - 0x508]
push eax
lea edx, [ebp - 0x50c]
mov eax, 0x4b768c
call fcn.00407084
mov eax, dword [ebp - 0x50c]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
movzx edx, word [edx + ecx*2]
mov dword [ebp - 0x514], edx
mov byte [ebp - 0x510], 0
lea edx, [ebp - 0x514]
xor ecx, ecx
call fcn.0040aa2c
mov eax, dword [ebp - 0x508]
push eax
fild dword [ebp - 0x34]
fild dword [ebp - 0x38]
fdivp st(1)
fmul dword [0x4b9b5c]
call fcn.00403000
mov edx, eax
mov ebx, dword [ebp - 4]
pop ecx
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
jmp 0x4b9693
mov eax, dword [ebp - 4]
call fcn.004b91e4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ax, word [eax + edx*2]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
mov word [edx + ecx*2], ax
inc dword [ebp - 0x34]
mov word [ebp - 0x1f4], 2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov ax, word [eax + edx*2]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1f2], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004053ec
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1f0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x1f4]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
push eax
call sub.wsock32.dll_connect
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
dec eax
cmp eax, dword [ebp - 0x2c]
jl 0x4b96a9
mov eax, dword [ebp - 0x38]
dec eax
cmp eax, dword [ebp - 0x34]
jge 0x4b9600
cmp dword [ebp - 0x2c], 0
jg 0x4b96bc
mov eax, dword [ebp - 0x38]
dec eax
cmp eax, dword [ebp - 0x34]
jl 0x4b9a50
lea eax, [ebp - 0x2f8]
call fcn.00497548
lea eax, [ebp - 0x3fc]
call fcn.00497548
lea eax, [ebp - 0x500]
call fcn.00497548
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x4b973d
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x2f8]
call fcn.00497538
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x3fc]
call fcn.00497538
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x500]
call fcn.00497538
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
inc dword [eax + edx*4]
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x4b96f0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x3fc]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jle 0x4b98eb
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x4b98eb
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x2f8]
call fcn.00497520
test al, al
je 0x4b97e7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x3fc]
call fcn.00497520
test al, al
je 0x4b97e7
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov ax, word [eax + edx*2]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b937c
mov dword [ebp - 0x50], eax
jmp 0x4b98df
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x2f8]
call fcn.00497520
test al, al
je 0x4b9835
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov ax, word [eax + edx*2]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b937c
mov dword [ebp - 0x50], eax
jmp 0x4b98df
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x3fc]
call fcn.00497520
test al, al
je 0x4b9880
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov ax, word [eax + edx*2]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b937c
mov dword [ebp - 0x50], eax
jmp 0x4b98df
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x500]
call fcn.00497520
test al, al
je 0x4b98a9
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x30]
jmp 0x4b98df
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4], 0xa
jle 0x4b98df
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, dword [edx + ecx*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
lea edx, [edx + edx*2]
cmp eax, edx
jbe 0x4b98df
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x30]
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x4b9781
cmp dword [ebp - 0x44], 0
jg 0x4b991b
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x4b991b
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x30]
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x4b9904
mov eax, dword [ebp - 0x30]
dec eax
test eax, eax
jl 0x4b9a34
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
call fcn.004b9230
mov eax, dword [ebp - 0x28]
inc eax
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov ecx, edx
shl ecx, 2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
lea eax, [eax + ebx*4 + 4]
call fcn.00402d4c
mov eax, dword [ebp - 0x28]
inc eax
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov ecx, edx
shl ecx, 2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
lea eax, [eax + ebx*4 + 4]
call fcn.00402d4c
mov eax, dword [ebp - 0x28]
inc eax
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov ecx, edx
shl ecx, 2
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
lea eax, [eax + ebx*4 + 4]
call fcn.00402d4c
mov eax, dword [ebp - 0x28]
inc eax
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov ecx, edx
add ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
lea edx, [eax + edx*2]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x28]
lea eax, [eax + ebx*2 + 2]
call fcn.00402d4c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov word [eax + edx*2 - 2], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec dword [ebp - 0x2c]
inc dword [ebp - 0x24]
dec dword [ebp - 0x54]
jne 0x4b9932
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
dec eax
jns 0x4b9560
mov eax, dword [ebp - 0x34]
inc eax
cmp eax, dword [ebp - 0x38]
jle 0x4b9560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9ab9
lea eax, [ebp - 0x14]
mov edx, dword [0x4b72bc]
call fcn.00406450
lea eax, [ebp - 0x18]
mov edx, dword [0x4b72bc]
call fcn.00406450
lea eax, [ebp - 0x20]
mov edx, dword [0x4b72ec]
call fcn.00406450
lea eax, [ebp - 0x1c]
mov edx, dword [0x4b72bc]
call fcn.00406450
lea eax, [ebp - 0x10]
mov edx, dword [0x4b728c]
call fcn.00406450
lea eax, [ebp - 0xc]
mov edx, dword [0x4b728c]
call fcn.00406450
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9b52
lea eax, [ebp - 0x50c]
mov edx, 2
call fcn.00404f34
lea eax, [ebp - 0x20]
mov edx, dword [0x4b72ec]
call fcn.00406450
lea eax, [ebp - 0x1c]
mov edx, dword [0x4b72bc]
mov ecx, 3
call fcn.00405c38
lea eax, [ebp - 0x10]
mov edx, dword [0x4b728c]
mov ecx, 2
call fcn.00405c38
ret