Function at 0x4020f4
Capabilities:
Query or enumerate registry value
Query service status

Disassembly:
jmp 0x42d3a0
sub esp, 0x438
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x434], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44c]
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControl
push 0x80000002
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], 0x7530
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d428
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.ServicesPipeTimeout
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42d568
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x450]
je 0x42d564
cmp eax, dword [esp + 0x454]
je 0x42d4bb
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x193
push str.C:projectsentryprotect_submodules_build_environmentinclude_sentrybay_servicemanager.h
lea eax, [esp + 0x54]
push str._s__d_:___u__u__assert_failed__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x5c]
push eax
call fcn.0040946c
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x454]
cmp dword [esp + 0x2c], eax
jne 0x42d5ab
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x42d533
mov eax, dword [esp + 0x3c]
test ebx, ebx
je 0x42d521
cmp ebx, eax
jne 0x42d521
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x199
push str.C:projectsentryprotect_submodules_build_environmentinclude_sentrybay_servicemanager.h
lea eax, [esp + 0x54]
push str._s__d_:___u__u__assert_failed__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x5c]
push eax
call fcn.0040946c
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp ebx, eax
je 0x42d5ab
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x24]
jmp 0x42d42e
test ebp, ebp
je 0x42d54f
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [esp + 0x1c]
sbb edx, dword [esp + 0x20]
test edx, edx
ja 0x42d5ab
jb 0x42d54f
cmp eax, ebp
ja 0x42d5ab
mov ecx, 0xfa
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x24]
jmp 0x42d42e
mov al, 1
jmp 0x42d5ad
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x18d
push str.C:projectsentryprotect_submodules_build_environmentinclude_sentrybay_servicemanager.h
lea eax, [esp + 0x58]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x60]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x438
ret 0xc