Function at 0x4289d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call fcn.00401ff0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x428a33
push 1
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428a33
push 0x5e9700
push str.Entering__s______n
push 0x17e
push 0x5e9738
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x4289d6
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x44], 0x62aef8
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
mov cl, byte [eax]
mov byte [ebp - 0x49], cl
add dword [ebp - 0x44], 1
cmp byte [ebp - 0x49], 0
jne 0x428a55
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x50], edx
jne 0x428a7a
mov eax, dword [ebp - 8]
jmp 0x428ce5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x428b04
call fcn.00401ff0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x428af6
push 1
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e974c
push str.Entering__s__OpenSCManager_failed___d___try_read_only_mode_n
push 0x188
push 0x5e97ac
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x20
xor ecx, ecx
jne 0x428a92
call fcn.00428cf0
jmp 0x428ce5
push 0xf01ff
push 0x62aef8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x428b9d
call fcn.00401ff0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x428b85
push 1
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CServiceModule::GetServiceStatus
push 0x5e97e4
push 0x18f
push 0x5e980c
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x20
xor ecx, ecx
jne 0x428b21
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x10000000
jmp 0x428ce5
mov dword [ebp - 8], 0xffffffff
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
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x428c6b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
call fcn.00401ff0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x428c39
push 3
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428c39
mov edx, dword [ebp - 8]
push edx
push 0x5e9820
push 0x19c
push 0x5e9838
push 3
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx + 0x10]
call ecx
add esp, 0x1c
xor edx, edx
jne 0x428bdd
cmp dword [ebp - 8], 4
jne 0x428c69
cmp dword [ebp + 8], 0
je 0x428c69
lea eax, [ebp - 0x2c]
push eax
push 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x428c69
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
jmp 0x428cce
call fcn.00401ff0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x428cca
push 3
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x40]
mov edx, dword [eax + 0xc]
call edx
movzx eax, al
test eax, eax
je 0x428cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e984c
push 0x1a8
push 0x5e986c
push 3
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [eax + 0x10]
call edx
add esp, 0x1c
xor eax, eax
jne 0x428c6b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret