Function at 0x10066f2
Capabilities:
Accept command line arguments
Query service status

Disassembly:
mov eax, 0x1016abd
call fcn.0100af48
sub esp, 0x44
mov eax, dword [0x101f7d8]
push ebx
push esi
push edi
mov ebx, 0x1020430
mov ecx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call fcn.01007173
mov esi, 0x100169c
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsw word es:[edi], word [esi]
call fcn.01007217
test eax, eax
mov dword [ebp - 0x20], eax
jl 0x10069e3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.01006268
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
inc esi
and dword [ebp - 4], 0
mov ebx, eax
test ebx, ebx
je 0x100680c
test esi, esi
je 0x10069bf
push 0x1001690
push ebx
call edi
test eax, eax
jne 0x1006792
mov ecx, 0x1020430
call fcn.01006f20
test eax, eax
mov dword [ebp - 0x20], eax
jl 0x100678e
push dword [0x1020490]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor esi, esi
jmp 0x10067fd
push 0x1001678
push ebx
call edi
test eax, eax
jne 0x10067c9
push 1
mov ecx, 0x1020494
call fcn.01007952
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], eax
jl 0x10067fd
mov ecx, dword [0x1020464]
push 1
push esi
call fcn.010091d5
push esi
call fcn.010062b8
jmp 0x10067fd
push 0x1001664
push ebx
call edi
test eax, eax
jne 0x10067fd
mov ecx, 0x1020494
call fcn.01007baf
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], eax
jl 0x10067fd
push 1
call fcn.010062b8
mov ecx, dword [0x1020464]
push 0xffffffffffffffff
push esi
call fcn.010091d5
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.01006268
jmp 0x1006753
test esi, esi
je 0x10069bf
mov ecx, 0x1020430
call fcn.01006ec1
test eax, eax
jne 0x10069ff
mov ecx, 0x1020494
call fcn.01007850
mov esi, 0x1001660
mov dword [ebp - 0x34], esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x100697f
mov dword [ebp - 0x2c], esi
push 5
push dword [0x101f050]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x1006952
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
push eax
push eax
push ebx
xor edi, edi
mov dword [ebp - 0x24], eax
call esi
test eax, eax
jne 0x10068c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10068c4
push dword [ebp - 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10068c4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push edi
push ebx
call esi
test eax, eax
je 0x10068c4
xor eax, eax
cmp dword [edi + 4], 3
sete al
mov dword [0x1020484], eax
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x4c], 4
je 0x100691a
mov ecx, 0x1020494
call fcn.01007b79
test eax, eax
jne 0x1006975
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, eax
jle 0x100690d
and ecx, 0xffff
or ecx, 0x80070000
test ecx, ecx
jl 0x1006936
mov dword [ebp - 0x20], 0x80070015
jmp 0x1006975
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, eax
jle 0x1006932
and ecx, 0xffff
or ecx, 0x80070000
test ecx, ecx
jge 0x1006949
test eax, eax
jle 0x1006944
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20], eax
jmp 0x1006975
mov dword [ebp - 0x20], 0x800700b7
jmp 0x1006975
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, eax
jle 0x100696a
and ecx, 0xffff
or ecx, 0x80070000
test ecx, ecx
jl 0x1006936
mov dword [ebp - 0x20], 0x80004005
lea ecx, [ebp - 0x2c]
call fcn.010066a2
jmp 0x10069b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, eax
jle 0x1006997
and ecx, 0xffff
or ecx, 0x80070000
test ecx, ecx
jge 0x10069b0
test eax, eax
jg 0x10069a4
mov dword [ebp - 0x20], eax
jmp 0x10069b7
and eax, 0xffff
or eax, 0x80070000
jmp 0x100699f
mov dword [ebp - 0x20], 0x80004005
lea ecx, [ebp - 0x34]
call fcn.010066a2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
jl 0x10069d9
mov ecx, 0x1020494
call fcn.01007796
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, 0x1020430
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::Format_unsigned_int_
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0100abde
pop edi
pop esi
pop ebx
leave
ret 0x10
mov dword [ebp - 0x20], 0x800700b7
jmp 0x10069bf