Function at 0x4602b8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov ebx, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x460313
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.00424dad
add esp, 0x10
xor eax, eax
jmp 0x460520
push 0xf01ff
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x460353
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x460349
push dword [ebp - 0x24]
push str._1_s__does_not_exist._n
jmp 0x4602fd
call esi
push eax
push str.OpenService_is_failed._ErrorCode__0x_1_lx__n
jmp 0x4602fd
lea ecx, [ebp - 0x2c]
push ecx
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4604f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4604cb
mov eax, dword [ebp - 0x2c]
push 0x3b
push str...CommonNTService.cpp
push eax
mov dword [ebp - 0x24], eax
call fcn.0045a88d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4604f1
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 0x460368
push dword [ebx + 0x20]
push str.Service______1_s__n
push str.IsServiceRunning
push 4
call fcn.00424dad
push dword [ebx]
push str.Type_________1_lu__n
push str.IsServiceRunning
push 4
call fcn.00424dad
push dword [ebx + 4]
push str.Start_Type___1_lu__n
push str.IsServiceRunning
push 4
call fcn.00424dad
mov ecx, dword [ebp - 0x30]
add esp, 0x30
test ecx, ecx
je 0x4603f6
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 0x460427
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.00424dad
add esp, 0x10
jmp 0x460505
cmp dword [ebp - 0x1c], 4
je 0x460437
push str.Service_is_not_running._n
jmp 0x4604f6
push dword [ebx + 0x20]
xor esi, esi
push str.__1_s__._n
push str.IsServiceRunning
push 5
inc esi
call fcn.00424dad
push dword [ebp - 0x1c]
push str.Current_State:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00424dad
push dword [ebp - 0x14]
push str.Exit_Code:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00424dad
push dword [ebp - 0x10]
push str.Service_Specific_Exit_Code:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00424dad
add esp, 0x40
push dword [ebp - 0xc]
push str.Check_Point:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00424dad
push dword [ebp - 8]
push str.Wait_Hint:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00424dad
push str._n
push str.IsServiceRunning
push 5
call fcn.00424dad
add esp, 0x2c
jmp 0x460505
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.00424dad
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, esi
jmp 0x460505
push str.memory_cannot_be_allocated._n
push str.IsServiceRunning
push 2
call fcn.00424dad
add esp, 0xc
push ebx
call fcn.0045a8a4
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
push dword [ebp - 0x28]
call ebx
test edi, edi
je 0x46051e
push edi
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret