Function at 0x40d8e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6cce
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x3d8
mov eax, dword [0x671330]
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 - 0x20c], ecx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20c]
call fcn.00416470
movzx eax, al
test eax, eax
je 0x40d970
push 0x606f88
lea ecx, [ebp - 0x2b0]
call fcn.00416440
push 0x638098
lea ecx, [ebp - 0x2b0]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 0
jne 0x40dacb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
push 0x98
lea ecx, [ebp - 0xc8]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0xc8]
call fcn.00416190
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x208]
push edx
lea eax, [ebp - 0x2c8]
push eax
call fcn.0040c020
add esp, 8
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 2
push 0x606fa4
lea edx, [ebp - 0xc8]
push edx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x26c]
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 - 0x270], eax
push 0x606fa0
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c8]
call fcn.0040b3b0
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00414da0
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x224], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040b380
push 0x638088
lea ecx, [ebp - 0x28c]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.0040b3b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00415390
push 4
mov ecx, dword [ebp - 0x20c]
call fcn.0040bfe0
push eax
mov edx, dword [ebp - 0x200]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
jne 0x40dc35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
push 0x98
lea ecx, [ebp - 0x160]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0x160]
call fcn.00416190
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x210]
push eax
lea ecx, [ebp - 0x2f8]
push ecx
call fcn.0040c020
add esp, 8
mov dword [ebp - 0x228], eax
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 5
push 0x606fc0
lea eax, [ebp - 0x160]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x22c]
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 - 0x230], eax
push 0x606fbc
mov edx, dword [ebp - 0x230]
push edx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2f8]
call fcn.0040b3b0
lea edx, [ebp - 0x310]
push edx
lea ecx, [ebp - 0x160]
call fcn.00414da0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x298]
call fcn.0040b380
push 0x638088
lea edx, [ebp - 0x298]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x310]
call fcn.0040b3b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.00415390
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40dc73
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x218], eax
jmp 0x40ddaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
push 0x98
lea ecx, [ebp - 0x1f8]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0x1f8]
call fcn.00416190
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x328]
push edx
call fcn.0040c020
add esp, 8
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 8
push str.QueryServiceStatus_failed__
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x214]
push edx
mov ecx, dword [ebp - 0x248]
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 - 0x24c], eax
push 0x606fd8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x328]
call fcn.0040b3b0
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x1f8]
call fcn.00414da0
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x2a4]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x2a4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x340]
call fcn.0040b3b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f8]
call fcn.00415390
jmp 0x40de85
mov dword [ebp - 4], 0xffffffff
jmp 0x40de95
cmp dword [ebp - 0x1fc], 0
je 0x40deab
mov eax, dword [ebp - 0x1fc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x200], 0
je 0x40dec1
mov ecx, dword [ebp - 0x200]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x218]
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.00544286
mov esp, ebp
pop ebp
ret