Function at 0x403cc4
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x30
push edi
push 0x15
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 4], edi
test edi, edi
jne 0x403d22
push 6
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
push 0x16
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 0x10
xor al, al
pop edi
add esp, 0x30
ret
push esi
push 0xf01ff
push str.NVDisplay.ContainerLocalSystem
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x403d69
push 7
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403df1
lea eax, [esp + 0xc]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x403dc8
push 8
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x16
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
pop esi
xor al, al
pop edi
add esp, 0x30
ret
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x403e08
cmp eax, 3
je 0x403e08
push 0xb
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x16
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
pop esi
xor al, al
pop edi
add esp, 0x30
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
cmp dword [esp + 0x20], 3
mov ebp, dword [esp + 0x30]
mov edi, eax
jne 0x403e8d
nop
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x403e3b
mov edx, 0x3e8
jmp 0x403e48
cmp edx, 0x2710
jbe 0x403e48
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x403ef3
cmp dword [esp + 0x30], ebp
jbe 0x403e7c
call ebx
mov ebp, dword [esp + 0x30]
mov edi, eax
jmp 0x403e86
call ebx
sub eax, edi
cmp eax, dword [esp + 0x34]
ja 0x403efc
cmp dword [esp + 0x20], 3
je 0x403e20
lea eax, [esp + 0x18]
push eax
push 1
push esi
mov dword [esp + 0x24], str.NVDisplay.ContainerLocalSystem
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x403f1b
push 0x17
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push 0x16
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
pop ebp
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x30
ret
push 8
push str.NVSTINST_ERROR_:__d
jmp 0x403eae
push 0x14
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
jmp 0x403ed8
push 0x18
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x403f8f
push 8
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push 9
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
pop ebp
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x30
ret
call ebx
cmp dword [esp + 0x20], 2
mov ebp, dword [esp + 0x30]
mov edi, eax
jne 0x404030
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x403fbd
mov edx, 0x3e8
jmp 0x403fca
cmp edx, 0x2710
jbe 0x403fca
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40400d
cmp dword [esp + 0x30], ebp
jbe 0x403ffa
call ebx
mov ebp, dword [esp + 0x30]
mov edi, eax
jmp 0x404004
call ebx
sub eax, edi
cmp eax, dword [esp + 0x34]
ja 0x404030
cmp dword [esp + 0x20], 2
je 0x403fa2
jmp 0x404030
push 8
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WIN_ERROR_:__d
call fcn.0040a7c0
add esp, 8
cmp dword [esp + 0x20], 4
jne 0x404048
push 0x19
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
jmp 0x404066
push 0xc
push str.NVSTINST_ERROR_:__d
call fcn.0040a7c0
mov ecx, dword [esp + 0x30]
push ecx
push str.WIN_ERROR_:__d
call fcn.0040a7c0
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
push 0x16
push str.NVSTINST_INFO_:__d
call fcn.0040a7c0
add esp, 8
pop ebp
pop ebx
pop esi
mov al, 1
pop edi
add esp, 0x30
ret