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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb7b2
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x65d4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f4], ecx
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 0x30]
cmp ecx, 0x2710
ja 0x47958c
mov edx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x30]
jae 0x479644
push 1
push 2
lea ecx, [ebp - 0x94]
call fcn.0040b040
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0x61b57c
lea ecx, [ebp - 0x94]
push ecx
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [ebp - 0x1b8]
push edx
lea ecx, [ebp - 0x94]
call fcn.004094f0
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1fc]
call fcn.0040be10
push eax
push 0x61b590
push 0x5d7
push 0x61b5a4
push 0x801
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b8]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00409dd0
mov ecx, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x30], edx
push 1
push 2
lea ecx, [ebp - 0x114]
call fcn.0040b040
mov dword [ebp - 4], 2
push 0x61b5b8
lea eax, [ebp - 0x114]
push eax
call fcn.00409b60
add esp, 8
lea ecx, [ebp - 0x1d4]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004094f0
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x204]
call fcn.0040be10
push eax
push 0x61b5c8
push 0x5d9
push 0x61b5dc
push 3
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d4]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00409dd0
mov ecx, dword [ebp - 0x1f4]
call fcn.0052b140
test eax, eax
je 0x479814
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x118]
sub ecx, dword [eax + 0x30]
cmp ecx, 0x2710
ja 0x47972a
mov edx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x118]
cmp eax, dword [edx + 0x30]
jae 0x4797e5
push 1
push 2
lea ecx, [ebp - 0x19c]
call fcn.0040b040
mov dword [ebp - 4], 4
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0x61b5f0
lea ecx, [ebp - 0x19c]
push ecx
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [ebp - 0x1f0]
push edx
lea ecx, [ebp - 0x19c]
call fcn.004094f0
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20c]
call fcn.0040be10
push eax
push str.CPolicyManager::Svc
push 0x5dd
push 0x61b618
push 0x801
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1f0]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.00409dd0
mov ecx, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x118]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x1f4]
cmp dword [eax + 0x104], 0
je 0x479802
mov ecx, dword [ebp - 0x1f4]
sub ecx, 0x10
call fcn.00478830
push 0x3e8
call fcn.00507ad0
add esp, 4
jmp 0x4796e0
mov ecx, dword [ebp - 0x1f4]
sub ecx, 0x10
mov edx, dword [ebp - 0x1f4]
mov eax, dword [edx - 0x10]
mov edx, dword [eax + 4]
call edx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret