Function at 0x665120
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689a1a
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x906648]
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 eax, dword [ebp + 8]
xor ebx, ebx
push 0xf003f
push ebx
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b0], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x6651b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x9538a8], 1
je 0x665211
push eax
push str.Failed_to_open_Service_Control_Manager:__d_n
push 0x15f
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_properties.cpp
push str.mapl_set_and_send_service_status
push dword [0x909fac]
push 1
call fcn.004f21c0
add esp, 0x1c
jmp 0x665211
push 4
push dword [0x909fa8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1b0], eax
test eax, eax
jne 0x66522d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x9538a8], 1
je 0x665208
push eax
push dword [0x909fa8]
push str.Failed_to_open_service__s:__d_n
push 0x167
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_properties.cpp
push str.mapl_set_and_send_service_status
push dword [0x909fac]
push 1
call fcn.004f21c0
add esp, 0x20
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call 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.0063c972
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x665287
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x9538a8], 1
je 0x66556f
push eax
push str.Failed_to_query_service_status:__d_n
push 0x16e
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_properties.cpp
push str.mapl_set_and_send_service_status
push dword [0x909fac]
push 1
call fcn.004f21c0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x1c
push dword [ebp - 0x1b0]
call edi
jmp 0x66520e
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 5
jne 0x665299
mov eax, str.SERVICE_CONTINUE_PENDING
jmp 0x6652e5
cmp ecx, 6
jne 0x6652a5
mov eax, str.SERVICE_PAUSE_PENDING
jmp 0x6652e5
cmp ecx, 7
jne 0x6652b1
mov eax, str.SERVICE_PAUSED
jmp 0x6652e5
cmp ecx, 4
jne 0x6652bd
mov eax, str.SERVICE_RUNNING
jmp 0x6652e5
cmp ecx, 2
jne 0x6652c9
mov eax, str.SERVICE_START_PENDING
jmp 0x6652e5
cmp ecx, 3
jne 0x6652d5
mov eax, str.SERVICE_STOP_PENDING
jmp 0x6652e5
cmp ecx, 1
mov eax, str.SERVICE_STOPPED
mov edx, str.INDERTERMINABLE
cmovne eax, edx
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.004f3b60
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push str.service_status
call fcn.00662810
mov ecx, eax
call fcn.00663610
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1ac], esp
push str.service_status
call fcn.005ee3d0
mov dword [ebp - 4], 0
call fcn.00662810
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00663460
mov edi, eax
test edi, edi
je 0x665366
lea eax, [ebp - 0x188]
mov ecx, edi
push eax
call fcn.006424e0
mov ebx, 1
mov byte [ebp - 0x1a5], bl
cmp dword [eax + 0x10], 0
ja 0x66536d
mov byte [ebp - 0x1a5], 0
test bl, 1
je 0x665380
lea ecx, [ebp - 0x188]
and ebx, 0xfffffffe
call fcn.004fd950
cmp byte [ebp - 0x1a5], 0
je 0x66556f
sub esp, 0x18
lea eax, [edi + 0x18]
mov ecx, esp
mov dword [ebp - 0x1ac], ecx
push eax
call fcn.005ee340
lea eax, [ebp - 0x170]
or ebx, 4
push eax
call fcn.00642d00
add esp, 4
mov dword [ebp - 4], 1
mov ecx, esp
lea eax, [edi + 0x48]
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x1ac], eax
push eax
call fcn.005ee340
lea eax, [ebp - 0x140]
or ebx, 8
push eax
call fcn.00642d00
add esp, 4
mov byte [ebp - 4], 2
mov ecx, edi
push esp
call fcn.006424e0
lea eax, [ebp - 0x128]
push eax
call fcn.00642d00
add esp, 0x1c
mov eax, dword [0x9538a8]
mov byte [ebp - 4], 3
test al, 8
je 0x66545e
cmp dword [ebp - 0x114], 8
lea ecx, [ebp - 0x128]
lea eax, [ebp - 0x140]
cmovae ecx, dword [ebp - 0x128]
cmp dword [ebp - 0x12c], 8
push ecx
cmovae eax, dword [ebp - 0x140]
push eax
push str.Property_name:__s__Property_val:__s_n
push 0x179
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_properties.cpp
push str.mapl_set_and_send_service_status
push dword [0x909fac]
push 8
call fcn.004f21c0
mov eax, dword [0x9538a8]
add esp, 0x20
mov edi, dword [ebp - 0x118]
test edi, edi
jne 0x6654cf
test al, 8
je 0x6654b9
push dword [ebp - 0x1ac]
lea ecx, [ebp - 0x158]
call fcn.005ee340
or ebx, 0x12
lea eax, [ebp - 0x158]
cmp dword [ebp - 0x144], 8
cmovae eax, dword [ebp - 0x158]
push eax
push str.Not_sending_the_property:__s__Reason:_Empty_property_n
push 0x179
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_properties.cpp
push str.mapl_set_and_send_service_status
push dword [0x909fac]
push 8
call fcn.004f21c0
add esp, 0x1c
test bl, 2
je 0x66554e
lea ecx, [ebp - 0x158]
call fcn.004fd950
jmp 0x66554e
cmp dword [ebp - 0x114], 8
lea edx, [ebp - 0x128]
push edi
cmovae edx, dword [ebp - 0x128]
lea ecx, [ebp - 0x140]
cmp dword [ebp - 0x12c], 8
lea eax, [ebp - 0x170]
push 0
cmovae ecx, dword [ebp - 0x140]
cmp dword [ebp - 0x15c], 8
push edx
cmovae eax, dword [ebp - 0x170]
push ecx
push eax
push dword [ebp - 0x1b4]
call dword [ebp - 0x1b8]
test eax, eax
jne 0x66554e
test byte [0x9538a8], 1
je 0x66554e
push str.Failed_to_set_property
push 0x179
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_properties.cpp
push str.mapl_set_and_send_service_status
push dword [0x909fac]
push 1
call fcn.004f21c0
add esp, 0x18
lea ecx, [ebp - 0x128]
call fcn.004fd950
lea ecx, [ebp - 0x140]
call fcn.004fd950
lea ecx, [ebp - 0x170]
call fcn.004fd950
push dword [ebp - 0x1b0]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x66520e