Function at 0x428cf0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x40], 0x62aef8
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
mov dl, byte [ecx]
mov byte [ebp - 0x45], dl
add dword [ebp - 0x40], 1
cmp byte [ebp - 0x45], 0
jne 0x428d14
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
jne 0x428d39
mov eax, dword [ebp - 8]
jmp 0x428f71
push 0x20015
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x428dc3
call fcn.00401ff0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x428db5
push 1
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
call edx
movzx eax, al
test eax, eax
je 0x428db5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e9880
push str.Entering__s__OpenSCManager_failed___d___ignore_this_step_n
push 0x1bb
push 0x5e98e8
push 1
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [eax + 0x10]
call edx
add esp, 0x20
xor eax, eax
jne 0x428d51
mov eax, 0x20000000
jmp 0x428f71
push 4
push 0x62aef8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x428e59
call fcn.00401ff0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x428e41
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CServiceModule::GetServiceStatus_ReadOnly
push str.Entering__s__OpenService_failed___d__n
push 0x1c2
push 0x5e9950
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 0x428ddd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x10000000
jmp 0x428f71
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 0x428ef7
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 - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x428ef1
push 3
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428ef1
mov edx, dword [ebp - 8]
push edx
push str.ServiceStatus:_0x_x__n
push 0x1cf
push 0x5e997c
push 3
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [edx + 0x10]
call ecx
add esp, 0x1c
xor edx, edx
jne 0x428e95
jmp 0x428f5a
call fcn.00401ff0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x428f56
push 3
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus_FAiled___d__n
push 0x1d2
push 0x5e99b0
push 3
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x428ef7
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret