Function at 0x42b082
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0xf003f
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push esi
push esi
mov dword [ebp - 0x30], eax
mov ebx, esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x42b0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_is_failed._ErrorCode__0x_1_lx__n
push str.IsServiceRunning
push 2
call fcn.00405a24
add esp, 0x10
xor eax, eax
jmp 0x42b2ea
push 0xf01ff
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x42b11d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x42b113
push dword [ebp - 0x24]
push str._1_s__does_not_exist._n
jmp 0x42b0c7
call esi
push eax
push str.OpenService_is_failed._ErrorCode__0x_1_lx__n
jmp 0x42b0c7
lea ecx, [ebp - 0x2c]
push ecx
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x42b2bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42b295
mov eax, dword [ebp - 0x2c]
push 0x3b
push str...CommonNTService.cpp
push eax
mov dword [ebp - 0x24], eax
call fcn.0042ae50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42b2bb
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x42b132
push dword [ebx + 0x20]
push str.Service______1_s__n
push str.IsServiceRunning
push 4
call fcn.00405a24
push dword [ebx]
push str.Type_________1_lu__n
push str.IsServiceRunning
push 4
call fcn.00405a24
push dword [ebx + 4]
push str.Start_Type___1_lu__n
push str.IsServiceRunning
push 4
call fcn.00405a24
mov ecx, dword [ebp - 0x30]
add esp, 0x30
test ecx, ecx
je 0x42b1c0
mov eax, dword [ebx + 4]
mov dword [ecx], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42b1f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus_is_failed._ErrorCode__0x_1_lx__n
push str.IsServiceRunning
push 2
call fcn.00405a24
add esp, 0x10
jmp 0x42b2cf
cmp dword [ebp - 0x1c], 4
je 0x42b201
push str.Service_is_not_running._n
jmp 0x42b2c0
push dword [ebx + 0x20]
xor esi, esi
push str.__1_s__._n
push str.IsServiceRunning
push 5
inc esi
call fcn.00405a24
push dword [ebp - 0x1c]
push str.Current_State:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00405a24
push dword [ebp - 0x14]
push str.Exit_Code:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00405a24
push dword [ebp - 0x10]
push str.Service_Specific_Exit_Code:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00405a24
add esp, 0x40
push dword [ebp - 0xc]
push str.Check_Point:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00405a24
push dword [ebp - 8]
push str.Wait_Hint:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00405a24
push str._n
push str.IsServiceRunning
push 5
call fcn.00405a24
add esp, 0x2c
jmp 0x42b2cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig_failed._ErrorCode__0x_1_lx__n
push str.IsServiceRunning
push 2
call fcn.00405a24
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, esi
jmp 0x42b2cf
push str.memory_cannot_be_allocated._n
push str.IsServiceRunning
push 2
call fcn.00405a24
add esp, 0xc
push ebx
call fcn.0042afb6
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
push dword [ebp - 0x28]
call ebx
test edi, edi
je 0x42b2e8
push edi
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret