Function at 0x45f21b
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x634460]
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 0x45f276
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.00423f75
add esp, 0x10
xor eax, eax
jmp 0x45f483
push 0xf01ff
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x45f2b6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x45f2ac
push dword [ebp - 0x24]
push str._1_s__does_not_exist._n
jmp 0x45f260
call esi
push eax
push str.OpenService_is_failed._ErrorCode__0x_1_lx__n
jmp 0x45f260
lea ecx, [ebp - 0x2c]
push ecx
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x45f454
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45f42e
mov eax, dword [ebp - 0x2c]
push 0x3b
push str...CommonNTService.cpp
push eax
mov dword [ebp - 0x24], eax
call fcn.0045976f
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x45f454
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 0x45f2cb
push dword [ebx + 0x20]
push str.Service______1_s__n
push str.IsServiceRunning
push 4
call fcn.00423f75
push dword [ebx]
push str.Type_________1_lu__n
push str.IsServiceRunning
push 4
call fcn.00423f75
push dword [ebx + 4]
push str.Start_Type___1_lu__n
push str.IsServiceRunning
push 4
call fcn.00423f75
mov ecx, dword [ebp - 0x30]
add esp, 0x30
test ecx, ecx
je 0x45f359
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 0x45f38a
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.00423f75
add esp, 0x10
jmp 0x45f468
cmp dword [ebp - 0x1c], 4
je 0x45f39a
push str.Service_is_not_running._n
jmp 0x45f459
push dword [ebx + 0x20]
xor esi, esi
push str.__1_s__._n
push str.IsServiceRunning
push 5
inc esi
call fcn.00423f75
push dword [ebp - 0x1c]
push str.Current_State:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00423f75
push dword [ebp - 0x14]
push str.Exit_Code:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00423f75
push dword [ebp - 0x10]
push str.Service_Specific_Exit_Code:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00423f75
add esp, 0x40
push dword [ebp - 0xc]
push str.Check_Point:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00423f75
push dword [ebp - 8]
push str.Wait_Hint:__1_lu__n
push str.IsServiceRunning
push 5
call fcn.00423f75
push str._n
push str.IsServiceRunning
push 5
call fcn.00423f75
add esp, 0x2c
jmp 0x45f468
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.00423f75
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, esi
jmp 0x45f468
push str.memory_cannot_be_allocated._n
push str.IsServiceRunning
push 2
call fcn.00423f75
add esp, 0xc
push ebx
call fcn.00459786
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
push dword [ebp - 0x28]
call ebx
test edi, edi
je 0x45f481
push edi
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret