Function at 0x1004ce10
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102271c0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x148
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 0xc9], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xdc]
call fcn.10083220
movzx eax, al
test eax, eax
je 0x1004ce9d
push 0x102b02a4
lea ecx, [ebp - 0x118]
call fcn.10085150
push 0x102ca5a8
lea ecx, [ebp - 0x118]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x1004cef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe0], eax
push 0x102b02bc
call fcn.10081d80
push eax
mov edx, dword [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x12c]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0x12c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x14
mov ecx, dword [ebp - 0xdc]
call fcn.1007dd30
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x1004cf56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe4], eax
push 0x102b02d4
call fcn.10081d80
push eax
mov edx, dword [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x140]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0x140]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1004cfa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe8], eax
push 0x102b02e8
call fcn.10081d80
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x154]
call fcn.10081d90
push 0x102ca4a8
lea edx, [ebp - 0x154]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
cmp dword [ebp + 0x10], 0
jle 0x1004d139
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 0x10]
cdq
add eax, ecx
adc edx, esi
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], edx
mov dword [ebp - 0xd8], 0
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1004d0c0
mov byte [ebp - 0xc9], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf0], eax
push 0x98
lea ecx, [ebp - 0xc8]
call fcn.1004c4a0
push 1
lea ecx, [ebp - 0xc8]
call fcn.100846c0
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 1
push 0x102b0300
lea edx, [ebp - 0xc8]
push edx
call fcn.10082bb0
add esp, 8
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf0]
push ecx
mov ecx, dword [ebp - 0xf4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0xf8], eax
push 0x102b02fc
mov edx, dword [ebp - 0xf8]
push edx
call fcn.10082bb0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.10082f70
jmp 0x1004d12a
cmp dword [ebp - 0x2c], 1
je 0x1004d0d2
cmp dword [ebp - 0x2c], 3
je 0x1004d0d2
cmp dword [ebp - 0x2c], 7
jne 0x1004d0dd
cmp dword [ebp - 0xd8], 0xa
jle 0x1004d0dd
jmp 0x1004d12a
mov eax, dword [ebp - 0xd8]
add eax, 1
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0x2c], 4
je 0x1004d12a
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], edx
mov ecx, dword [ebp - 0xfc]
cmp ecx, dword [ebp - 0x104]
jb 0x1004cff2
ja 0x1004d12a
mov edx, dword [ebp - 0x100]
cmp edx, dword [ebp - 0x108]
jb 0x1004cff2
cmp dword [ebp - 0x2c], 4
jne 0x1004d137
mov byte [ebp - 0xc9], 1
jmp 0x1004d140
mov byte [ebp - 0xc9], 1
jmp 0x1004d148
mov dword [ebp - 4], 0xffffffff
jmp 0x1004d158
cmp dword [ebp - 0xd0], 0
je 0x1004d16e
mov eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0xd4], 0
je 0x1004d184
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0xc9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret 0xc