Function at 0x426ea0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x45da50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
push 1
push 3
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_int_]
mov dword [ebp - 4], 0
lea eax, [ebp - 0xbc]
test eax, eax
je 0x426f0b
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x138], ecx
jmp 0x426f15
mov dword [ebp - 0x138], 0
push str.The_Service
mov edx, dword [ebp - 0x138]
push edx
call fcn.00404550
add esp, 8
mov ecx, dword [ebp - 0x134]
add ecx, 0x58
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::empty_void_const]
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___bool_]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc0]
add edx, dword [ecx + 4]
mov ecx, edx
call dword [sym.imp.MSVCP80.dll_public:_void____thiscall_std::ios_base::operator_void__void_const]
test eax, eax
je 0x426f7f
mov ecx, dword [ebp - 0x134]
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
mov dword [ebp - 0x13c], eax
jmp 0x426f94
mov ecx, dword [ebp - 0x134]
add ecx, 0x58
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0xbc]
test eax, eax
je 0x426fac
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x140], ecx
jmp 0x426fb6
mov dword [ebp - 0x140], 0
push str.failed_to_query_service_status_due_to_the_following_error:__n
mov edx, dword [ebp - 0x140]
push edx
call fcn.00404550
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x427154
push 4
mov ecx, dword [ebp - 0x134]
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4270fa
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x427079
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::str_void_]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x148]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00426830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp + 8]
jne 0x4270f8
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4270eb
lea edx, [ebp - 0xf8]
push edx
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::str_void_]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x150]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00426830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x427079
jmp 0x427152
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::str_void_]
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], edx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x158]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00426830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
jmp 0x4271ac
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::str_void_]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], ecx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x160]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00426830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
cmp dword [ebp - 0x10], 0
je 0x4271bc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 0
je 0x4271cc
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::vbase_dtor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4