Function at 0x4bb330
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x330
mov eax, dword [0x5857cc]
xor eax, esp
mov dword [esp + 0x32c], eax
mov ecx, dword [esp + 0x334]
mov edx, dword [esp + 0x33c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 8], edi
cmp ecx, edi
je 0x4bb38b
mov esi, dword [esp + 0x340]
xor eax, eax
cmp esi, edi
jbe 0x4bb38b
jmp 0x4bb380
cmp dword [ecx + eax*8], 0xffffffff
jne 0x4bb3d6
inc eax
cmp eax, esi
jb 0x4bb380
cmp edx, edi
je 0x4bb3bd
jge 0x4bb3b6
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00521458
add esp, 0x330
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00521458
add esp, 0x330
ret
cmp edx, edi
jle 0x4bb3eb
mov dword [esp + 8], edx
call fcn.004a44c0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
push ebx
push ebp
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x134], edi
mov dword [esp + 0x238], esi
mov dword [esp + 0x18], 0xffffffff
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov word [eax + ebx*8 + 6], cx
mov ecx, dword [eax + ebx*8]
cmp ecx, 0xffffffff
je 0x4bb4ed
movzx edx, word [eax + ebx*8 + 4]
test dl, 7
je 0x4bb4ed
cmp ecx, dword [esp + 0x18]
jbe 0x4bb43f
mov dword [esp + 0x18], ecx
test dl, 1
je 0x4bb471
xor eax, eax
test ebp, ebp
je 0x4bb45b
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x34], ecx
je 0x4bb45b
inc eax
cmp eax, ebp
jb 0x4bb450
cmp eax, ebp
jne 0x4bb471
cmp ebp, 0x40
jae 0x4bb471
mov dword [esp + eax*4 + 0x34], ecx
mov ebp, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x30], ebp
test dl, 4
je 0x4bb4ad
xor eax, eax
test edi, edi
je 0x4bb48e
lea esp, [esp]
cmp dword [esp + eax*4 + 0x138], ecx
je 0x4bb48e
inc eax
cmp eax, edi
jb 0x4bb480
cmp eax, edi
jne 0x4bb4ad
cmp edi, 0x40
jae 0x4bb4ad
mov dword [esp + eax*4 + 0x138], ecx
mov edi, dword [esp + 0x134]
inc edi
mov dword [esp + 0x134], edi
test dl, 2
je 0x4bb4ed
xor eax, eax
test esi, esi
je 0x4bb4ce
jmp 0x4bb4c0
cmp dword [esp + eax*4 + 0x23c], ecx
je 0x4bb4ce
inc eax
cmp eax, esi
jb 0x4bb4c0
cmp eax, esi
jne 0x4bb4ed
cmp esi, 0x40
jae 0x4bb4ed
mov dword [esp + eax*4 + 0x23c], ecx
mov esi, dword [esp + 0x238]
inc esi
mov dword [esp + 0x238], esi
inc ebx
cmp ebx, dword [esp + 0x348]
jb 0x4bb410
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
cmp dword [esp + 0x14], edx
lea eax, [esp + 0x28]
setl dl
lea esi, [edx - 1]
and esi, eax
inc ebx
mov edi, edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
jle 0x4bb555
mov ecx, dword [esp + 0x10]
mov eax, 0x10624dd3
imul dword [esp + 0x10]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x4bb55b
jne 0x4bb55f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
push esi
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call edi
cmp eax, 0xffffffff
jne 0x4bb5c4
call ebp
test eax, eax
je 0x4bb58a
cmp eax, 0x2714
jne 0x4bb5c8
cmp dword [esp + 0x14], 0
jle 0x4bb520
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.004a44c0
push edx
push eax
call fcn.004a44f0
mov ecx, dword [esp + 0x24]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x4bb520
or eax, 0xffffffff
jmp 0x4bb644
test eax, eax
jns 0x4bb5cd
or eax, 0xffffffff
jmp 0x4bb644
jne 0x4bb5d3
xor eax, eax
jmp 0x4bb644
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x348]
xor ebx, ebx
add esi, 6
mov eax, dword [esi - 6]
xor ecx, ecx
mov word [esi], cx
cmp eax, 0xffffffff
je 0x4bb63c
lea edx, [esp + 0x30]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb603
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [esp + 0x134]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb61c
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [esp + 0x238]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb635
or word [esi], 2
cmp word [esi], 0
je 0x4bb63c
inc ebx
add esi, 8
dec edi
jne 0x4bb5e3
mov eax, ebx
mov ecx, dword [esp + 0x33c]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00521458
add esp, 0x330
ret