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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x30015150]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x34], eax
mov eax, dword [0x30015114]
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push 0x30001c78
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.3000f86a
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jl 0x3000796b
lea eax, [ebp - 0x18]
push 0x30001c18
push eax
call fcn.3000f86a
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jl 0x3000796b
mov eax, dword [ebp - 0x1c]
push 0xc
pop ebx
push 0x30001918
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 0x300076e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x300076e2
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x3000796b
push 0x2710
push dword [ebp - 0x10]
call fcn.300124b9
mov edi, eax
cmp edi, 0x80070102
je 0x3000796b
cmp edi, esi
jl 0x3000796b
mov ecx, dword [ebp - 0x18]
push 0x30001bd0
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 0x30007757
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30007751
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x3000796b
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x30007785
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x3000777f
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x3000796b
push 0x300151b8
push dword [ebp - 8]
call fcn.30004894
mov edi, eax
cmp edi, esi
jl 0x3000796b
push 0x30001ba4
push 2
lea eax, [ebp - 0x34]
push eax
push 0x30001b6c
call fcn.3000fa67
mov edi, eax
cmp edi, esi
jl 0x3000796b
cmp dword [ebp + 8], esi
je 0x300077ff
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x300077ff
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 0x300077ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x300077f9
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30007955
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.3001254c
mov edi, eax
cmp edi, esi
jl 0x30007955
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 0x3000785c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jle 0x30007856
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x30007955
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
jne 0x3000788a
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x30001af8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], esi
je 0x300078a2
push 0x300151c0
push dword [ebp - 4]
call fcn.3000734c
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 [0x300151bc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp + 8], 1
je 0x300078c8
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 0x300078c8
cmp eax, 0x102
jne 0x30007910
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [0x30015198]
mov ecx, dword [0x300151bc]
imul ebx, ebx, 0xea60
mov edx, eax
sub edx, ecx
cmp edx, ebx
jae 0x30007941
mov ebx, dword [ebp - 0x14]
jmp 0x300078c8
cmp eax, esi
je 0x30007953
cmp eax, 0x80
je 0x30007953
cmp ebx, esi
je 0x300078c8
mov ecx, dword [ebp + 8]
dec ecx
cmp ecx, eax
jne 0x300078c8
push 0x300151c0
push dword [ebp - 4]
call fcn.3000734c
push 1
push ebx
push 4
push esi
push dword [ebp - 4]
call edi
jmp 0x300078c8
sub eax, ecx
push eax
push 0x30001ad0
push 1
call fcn.30011c87
add esp, 0xc
xor edi, edi
push esi
push 2
lea eax, [ebp - 0x34]
push eax
call fcn.3000faf2
cmp dword [ebp - 0x20], esi
je 0x3000796b
call fcn.30012581
mov eax, dword [0x300151b8]
cmp eax, esi
je 0x30007995
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [0x300151b8]
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 [0x300151b8], esi
cmp dword [ebp - 4], esi
je 0x300079a3
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 0x300079b3
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 8], esi
je 0x300079bd
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], esi
je 0x300079d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 0x10], esi
je 0x300079e8
cmp dword [ebp - 0x24], esi
je 0x300079e3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x18], esi
je 0x300079f5
push dword [ebp - 0x18]
call fcn.3000f936
cmp dword [ebp - 0x1c], esi
je 0x30007a02
push dword [ebp - 0x1c]
call fcn.3000f936
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8