Function at 0x49f090
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x534008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [0x539ac4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
je 0x49f14e
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x49f14e
cmp dword [eax + 0x58], 4
jb 0x49f14e
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x1c
push str.Entry_QueryServiceStatusInfo
mov dword [ebp - 4], 0
call fcn.0040a960
push 0x114
push str.RC::DM::QueryServiceStatusInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 4
call fcn.004b31c0
test bl, bl
je 0x49f13f
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
cmp dword [esi + 0x10], 0
jne 0x49f16c
mov dword [edi], 0xa803be
jmp 0x49f4a7
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x49f21a
cmp dword [0x539ac4], eax
je 0x49f206
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], bl
je 0x49f206
cmp dword [eax + 0x58], 2
jb 0x49f206
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x1b
push str.Open_service_manage_failed_
mov dword [ebp - 4], 1
call fcn.0040a960
push 0x123
push str.RC::DM::QueryServiceStatusInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
test bl, bl
je 0x49f1f7
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov dword [edi], 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x49f4a7
cmp dword [esi + 0x14], 8
jb 0x49f222
mov esi, dword [esi]
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x49f2da
cmp dword [0x539ac4], eax
je 0x49f2bf
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x49f2bf
cmp dword [eax + 0x58], 2
jb 0x49f2bf
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x14
push str.Open_service_failed_
mov dword [ebp - 4], 2
call fcn.0040a960
push 0x12f
push str.RC::DM::QueryServiceStatusInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
test bl, bl
je 0x49f2ad
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov ebx, dword [ebp - 0x34]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [edi], 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x49f4a7
xor esi, esi
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x49f319
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49f3d5
mov eax, dword [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
push esi
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x49f47a
cmp dword [0x539ac4], eax
je 0x49f3b9
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x49f3b9
cmp dword [eax + 0x58], 2
jb 0x49f3b9
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x28
push str.QueryServiceStatusEx_windows_API_failed_
mov dword [ebp - 4], 4
call fcn.0040a960
push 0x158
push str.RC::DM::QueryServiceStatusInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
test bl, bl
je 0x49f3a7
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov ebx, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x49f468
cmp dword [0x539ac4], esi
je 0x49f45a
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x49f45a
cmp dword [eax + 0x58], 2
jb 0x49f45a
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x28
push str.QueryServiceStatusEx_windows_API_failed_
mov dword [ebp - 4], 3
call fcn.0040a960
push 0x148
push str.RC::DM::QueryServiceStatusInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
test bl, bl
je 0x49f448
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov ebx, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x2c]
call esi
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xa803b9
call eax
mov dword [edi + 4], eax
jmp 0x49f4a7
mov ecx, dword [ebp - 0x40]
mov eax, dword [esi + 4]
push ebx
mov dword [ecx], eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [esi + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ecx], eax
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], 0
cmp dword [0x539ac4], 0
je 0x49f52a
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x49f52a
cmp dword [eax + 0x58], 4
jb 0x49f52a
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x1b
push str.Exit_QueryServiceStatusInfo
mov dword [ebp - 4], 5
call fcn.0040a960
push 0x16b
push str.RC::DM::QueryServiceStatusInfo
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 4
call fcn.004b31c0
test bl, bl
je 0x49f51b
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5f6c
mov esp, ebp
pop ebp
ret