Function at 0x100fde5
Capabilities:
Query service status

Disassembly:
push 0x70
push 0x100fee8
call fcn.010015a0
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, 0x1040184
mov edi, 0x100e9a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x100fec4
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 0x10252f3
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 0x102511b
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 0x102514c
test dword [ebp - 0x40], 4
je 0x102517d
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fea9
test byte [eax + 0x1c], 1
je 0x100fea9
cmp byte [eax + 0x19], 4
jb 0x100fea9
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.0100ff09
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 8
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], 2
jb 0x100fead
push dword [ebp - 0x1c]
push edi
push 0x12
jmp 0x1025329
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], 2
jb 0x100fead
push dword [ebp - 0x1c]
push edi
push 0x13
jmp 0x1025329
mov eax, dword [0x1040184]
cmp eax, esi
je 0x10251a3
test byte [eax + 0x1c], 1
je 0x10251a3
cmp byte [eax + 0x19], 4
jb 0x10251a3
push dword [ebp + 0xc]
push edi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
push 2
pop ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x103aee1
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
je 0x10251f1
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], bl
jb 0x100fead
push dword [ebp - 0x1c]
push edi
push 0x15
jmp 0x1025329
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1025214
test byte [eax + 0x1c], 1
je 0x1025214
cmp byte [eax + 0x19], 4
jb 0x1025214
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
push 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1025258
mov dword [ebp - 0x1c], 0x5b4
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], bl
jb 0x100fead
push dword [ebp + 0xc]
push edi
push 0x17
jmp 0x1025329
cmp eax, 0xc0
je 0x102528a
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], bl
jb 0x100fead
push dword [ebp - 0x1c]
push edi
push 0x18
jmp 0x1025329
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x10252ba
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], bl
jb 0x100fead
push ecx
push edi
push 0x19
jmp 0x1025329
cmp dword [ebp - 0x6c], 4
je 0x100fe86
mov dword [ebp - 0x1c], 0x5b4
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], bl
jb 0x100fead
push dword [ebp - 0x6c]
push edi
push 0x1a
jmp 0x1025329
call ebx
mov dword [ebp - 0x1c], eax
mov eax, 0x5b4
cmp dword [ebp - 0x1c], eax
je 0x1025339
mov eax, dword [0x1040184]
cmp eax, esi
je 0x100fead
test byte [eax + 0x1c], 1
je 0x100fead
cmp byte [eax + 0x19], 2
jb 0x100fead
push dword [ebp - 0x1c]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x100fead
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x24], ecx
jbe 0x1025349
mov dword [ebp - 0x1c], eax
jmp 0x100fead
mov eax, dword [0x1040184]
cmp eax, esi
je 0x102536d
test byte [eax + 0x1c], 1
je 0x102536d
cmp byte [eax + 0x19], 4
jb 0x102536d
push ecx
push edi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x24], 0x64
jmp 0x100fe35