Function at 0x10015fb
Capabilities:
Query service status

Disassembly:
push 0x70
push 0x10017a0
call fcn.010017fb
mov dword [ebp - 0x1c], 0x57
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x80], esi
push 0x38
push esi
lea eax, [ebp - 0x7c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], esi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov esi, 0x10150c0
mov edi, 0x10017bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x1001780
push 0
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009c4d
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1009b0b
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x1009b3c
test dword [ebp - 0x40], 4
jne 0x1001742
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x10016c2
test byte [eax + 0x1c], 1
je 0x10016c2
cmp byte [eax + 0x19], 4
jb 0x10016c2
push dword [ebp + 0xc]
push edi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002f89
push 2
pop ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x1002253
lea eax, [ebp - 0x80]
push eax
push 8
push dword [ebp - 0x20]
call dword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_NotifyServiceStatusChangeW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1009b6d
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x100170c
test byte [eax + 0x1c], 1
je 0x100170c
cmp byte [eax + 0x19], 4
jb 0x100170c
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010015b6
push 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1009b98
cmp eax, 0xc0
jne 0x1009bca
mov ecx, dword [ebp - 0x74]
test ecx, ecx
jne 0x1009bf5
cmp dword [ebp - 0x6c], 4
jne 0x1009c1e
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001765
test byte [eax + 0x1c], 1
je 0x1001765
cmp byte [eax + 0x19], 4
jb 0x1001765
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010015b6
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.010017d1
mov eax, dword [ebp - 0x1c]
call fcn.010015e2
ret 8
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], 2
jb 0x1001769
push dword [ebp - 0x1c]
push edi
push 0x12
jmp 0x1009c83
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], 2
jb 0x1001769
push dword [ebp - 0x1c]
push edi
push 0x13
jmp 0x1009c83
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], bl
jb 0x1001769
push dword [ebp - 0x1c]
push edi
push 0x15
jmp 0x1009c83
mov dword [ebp - 0x1c], 0x5b4
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], bl
jb 0x1001769
push dword [ebp + 0xc]
push edi
push 0x17
jmp 0x1009c83
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], bl
jb 0x1001769
push dword [ebp - 0x1c]
push edi
push 0x18
jmp 0x1009c83
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], bl
jb 0x1001769
push ecx
push edi
push 0x19
jmp 0x1009c83
mov dword [ebp - 0x1c], 0x5b4
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], bl
jb 0x1001769
push dword [ebp - 0x6c]
push edi
push 0x1a
jmp 0x1009c83
call ebx
mov dword [ebp - 0x1c], eax
mov eax, 0x5b4
cmp dword [ebp - 0x1c], eax
je 0x1009c93
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1001769
test byte [eax + 0x1c], 1
je 0x1001769
cmp byte [eax + 0x19], 2
jb 0x1001769
push dword [ebp - 0x1c]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002f89
jmp 0x1001769
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x24], ecx
jbe 0x1009ca3
mov dword [ebp - 0x1c], eax
jmp 0x1001769
mov eax, dword [0x10150c0]
cmp eax, esi
je 0x1009cc7
test byte [eax + 0x1c], 1
je 0x1009cc7
cmp byte [eax + 0x19], 4
jb 0x1009cc7
push ecx
push edi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002f89
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x24], 0x64
jmp 0x100164b