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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x40b52f
mov eax, 1
jmp 0x40b752
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0040a390
movzx eax, al
test eax, eax
je 0x40b584
mov eax, dword [ebp - 4]
add eax, 0x188
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0040a490
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0040a3c0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1a4]
test ecx, ecx
je 0x40b584
mov eax, 6
jmp 0x40b752
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0
jle 0x40b5ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x174]
sub ecx, 0x64
test ecx, ecx
jle 0x40b5b1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x174]
sub eax, 0x64
mov dword [ebp - 0x54], eax
jmp 0x40b5b8
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0x174], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0
jne 0x40b5e2
mov eax, 8
jmp 0x40b752
mov eax, 7
jmp 0x40b752
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3a98
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x40b750
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jbe 0x40b629
mov dword [ebp - 0x10], 0x102
mov eax, 5
jmp 0x40b752
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0040a390
movzx eax, al
test eax, eax
je 0x40b67e
mov eax, dword [ebp - 4]
add eax, 0x188
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0040a490
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0040a3c0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1a4]
test ecx, ecx
je 0x40b67e
mov eax, 6
jmp 0x40b752
push 1
push 0
push 0
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b73c
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x40b73a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
and ecx, 0x10
je 0x40b704
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
sub edx, 0x273f
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xe
ja case.0x40b6ef.1
mov eax, dword [ebp - 0x54]
movzx ecx, byte [eax + 0x40b761]
jmp dword [ecx*4 + 0x40b759]
mov eax, 0xa
jmp 0x40b752
mov eax, 2
jmp 0x40b752
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
and ecx, 8
je 0x40b716
mov eax, 9
jmp 0x40b752
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
and ecx, 1
je 0x40b728
mov eax, 4
jmp 0x40b752
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
and ecx, 0x20
je 0x40b73a
mov eax, 3
jmp 0x40b752
jmp 0x40b74b
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40b74b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x54], eax
jmp 0x40b5fa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret