Function at 0x427520
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435e30
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x45da50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x31], 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 0x42758f
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x120], ecx
jmp 0x427599
mov dword [ebp - 0x120], 0
push str.The_Service
mov edx, dword [ebp - 0x120]
push edx
call fcn.00404550
add esp, 8
mov ecx, dword [ebp - 0x11c]
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 0x427603
mov ecx, dword [ebp - 0x11c]
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 - 0x124], eax
jmp 0x427618
mov ecx, dword [ebp - 0x11c]
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 - 0x124], eax
lea eax, [ebp - 0xbc]
test eax, eax
je 0x427630
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x128], ecx
jmp 0x42763a
mov dword [ebp - 0x128], 0
push str._failed_to_query_service_status_due_to_the_following_error:__n
mov edx, dword [ebp - 0x128]
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 0x4277ac
push 4
mov ecx, dword [ebp - 0x11c]
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 0x427752
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4276ff
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 - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x130]
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 - 0x11c]
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_]
jmp case.default.0x42773f
push 0
push 0x43fd68
mov ecx, dword [ebp - 0x11c]
call fcn.00426830
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
sub eax, 1
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 6
ja case.default.0x42773f
mov ecx, dword [ebp - 0x134]
movzx edx, byte [ecx + 0x427860]
jmp dword [edx*4 + 0x427858]
mov byte [ebp - 0x31], 0
jmp case.default.0x42773f
mov byte [ebp - 0x31], 1
jmp 0x4277aa
lea eax, [ebp - 0xf8]
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 - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x13c]
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 - 0x11c]
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_]
jmp 0x427804
lea edx, [ebp - 0x114]
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 - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x144]
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 - 0x11c]
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_]
cmp dword [ebp - 0x10], 0
je 0x427814
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 0
je 0x427824
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x115], al
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 al, byte [ebp - 0x115]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret