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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x30021360]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x34], eax
mov eax, dword [0x300212e8]
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push 0x30001c70
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call fcn.30010fa5
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jl 0x30008f7e
lea eax, [ebp - 0x18]
push 0x30001c10
push eax
call fcn.30010fa5
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jl 0x30008f7e
mov eax, dword [ebp - 0x1c]
push 0xc
pop ebx
push 0x30001910
mov dword [ebp - 0x3c], eax
push esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x30008cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30008cf5
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30008f7e
push 0x2710
push dword [ebp - 0x10]
call fcn.3001443e
mov edi, eax
cmp edi, 0x80070102
je 0x30008f7e
cmp edi, esi
jl 0x30008f7e
mov ecx, dword [ebp - 0x18]
push 0x30001bc8
xor eax, eax
inc eax
push esi
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], esi
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x30008d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30008d64
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30008f7e
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x30008d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30008d92
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30008f7e
push 0x30021388
push dword [ebp - 8]
call fcn.30005f59
mov edi, eax
cmp edi, esi
jl 0x30008f7e
push 0x30001b9c
push 2
lea eax, [ebp - 0x34]
push eax
push 0x30001b64
call fcn.30012174
mov edi, eax
cmp edi, esi
jl 0x30008f7e
cmp dword [ebp + 8], esi
je 0x30008e12
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x30008e12
push eax
push dword [ebp + 8]
mov dword [eax + 0xc], esi
mov dword [eax + 4], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x30008e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30008e0c
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30008f68
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
push 1
call fcn.300144d3
mov edi, eax
cmp edi, esi
jl 0x30008f68
push esi
push esi
push esi
push esi
mov dword [ebp - 0x20], 1
call ebx
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x30008e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30008e69
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30008f68
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
jne 0x30008e9d
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x30001af0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], esi
je 0x30008eb5
push 0x30021390
push dword [ebp - 4]
call fcn.30008961
push 1
push ebx
push 4
push esi
push dword [ebp - 4]
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, esi
mov dword [0x3002138c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp + 8], 1
je 0x30008edb
mov dword [ebp - 0x28], ebx
mov dword [ebp + 8], 2
push 1
push 0xea60
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, 0xc0
je 0x30008edb
cmp eax, 0x102
jne 0x30008f23
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [0x30021368]
mov ecx, dword [0x3002138c]
imul ebx, ebx, 0xea60
mov edx, eax
sub edx, ecx
cmp edx, ebx
jae 0x30008f54
mov ebx, dword [ebp - 0x14]
jmp 0x30008edb
cmp eax, esi
je 0x30008f66
cmp eax, 0x80
je 0x30008f66
cmp ebx, esi
je 0x30008edb
mov ecx, dword [ebp + 8]
dec ecx
cmp ecx, eax
jne 0x30008edb
push 0x30021390
push dword [ebp - 4]
call fcn.30008961
push 1
push ebx
push 4
push esi
push dword [ebp - 4]
call edi
jmp 0x30008edb
sub eax, ecx
push eax
push 0x30001ac8
push 1
call fcn.30013b9d
add esp, 0xc
xor edi, edi
push esi
push 2
lea eax, [ebp - 0x34]
push eax
call fcn.300121fe
cmp dword [ebp - 0x20], esi
je 0x30008f7e
call fcn.3001450a
mov eax, dword [0x30021388]
cmp eax, esi
je 0x30008fa8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [0x30021388]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x30021388], esi
cmp dword [ebp - 4], esi
je 0x30008fb6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x30008fc6
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 8], esi
je 0x30008fd0
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], esi
je 0x30008fe3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 0x10], esi
je 0x30008ffb
cmp dword [ebp - 0x24], esi
je 0x30008ff6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x18], esi
je 0x30009008
push dword [ebp - 0x18]
call fcn.30011060
cmp dword [ebp - 0x1c], esi
je 0x30009015
push dword [ebp - 0x1c]
call fcn.30011060
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8