Function at 0x42cc80
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42ccbb
push str.VNLQueryServiceRunningStatus:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
mov eax, 0x8420
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.VNLQueryServiceRunningStatus:_Attempting_to_query_service:__S
push 0x20
call fcn.004439a0
add esp, 0xc
push 0x20000
push 0x4ae7f8
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x42cd7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42cd5e
cmp eax, 0x57
je 0x42cd41
cmp eax, 0x429
je 0x42cd24
push eax
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_0x_08X
push 1
call fcn.004439a0
add esp, 0xc
pop esi
mov eax, 0x8420
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.004439a0
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
push 1
call fcn.004439a0
add esp, 0x10
jmp case.default.0x42cea1
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.004439a0
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
push 1
call fcn.004439a0
add esp, 0x10
jmp case.default.0x42cea1
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
push str.VNLQueryServiceRunningStatus:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.004439a0
add esp, 0x10
jmp case.default.0x42cea1
push str.VNLQueryServiceRunningStatus:_Service_Manager_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x42ce06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
ja 0x42cdc8
je 0x42cdc1
mov ecx, eax
sub ecx, 5
je 0x42cdba
sub ecx, 1
jne 0x42cdcf
push str.VNLQueryServiceRunningStatus:_Service_could_not_be_opened:_ERROR_INVALID_HANDLE
jmp 0x42cdf0
push str.VNLQueryServiceRunningStatus:_Service_could_not_be_opened:_ERROR_ACCESS_DENIED
jmp 0x42cdf0
push str.VNLQueryServiceRunningStatus:_Service_could_not_be_opened:_ERROR_INVALID_NAME
jmp 0x42cdf0
cmp eax, 0x424
je 0x42cdeb
push eax
push str.VNLQueryServiceRunningStatus:_Service_could_not_be_opened:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp case.default.0x42cea1
push str.VNLQueryServiceRunningStatus:_Service_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 1
call fcn.004439a0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp case.default.0x42cea1
push str.VNLQueryServiceRunningStatus:_Service_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42ce5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLQueryServiceRunningStatus:_Could_not_query_service_status:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x42ce7c
mov eax, dword [ecx*4 + 0x4e9274]
jmp 0x42ce81
mov eax, dword [str.INVALID]
push dword [ebp - 0xc]
push eax
push str.VNLQueryServiceRunningStatus:_service_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x1c]
add esp, 0x10
dec eax
cmp eax, 6
ja case.default.0x42cea1
jmp dword [eax*4 + 0x42cf3c]
pop esi
mov eax, 0x8404
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8405
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8408
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8409
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x840a
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8411
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x8410
pop esi
xor ecx, ebp
pop edi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret