Function at 0x100171a0
Capabilities:
Start service

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x60
mov esi, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov dword [ebp - 0x34], 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x3c], esi
test byte [0x10021840], 8
jne 0x100173e8
mov eax, dword [ebx]
lea esi, [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
call dword [eax + 0x10]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x10017220
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.StartService
mov dword [esp + 4], str.Win32_Service
mov dword [esp], 0
call sym._create_signature
mov ebx, eax
test eax, eax
jne 0x10017440
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10017283
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x10017458
mov edi, dword [ebp - 0x28]
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov dword [ebp - 0x40], eax
sub esp, 0xc
test eax, eax
je 0x10017480
mov dword [esp + 4], edi
mov dword [esp + 8], 0x10
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x100174c0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_StartServiceW]
xor edx, edx
xor ecx, ecx
sub esp, 0xc
test eax, eax
je 0x10017428
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov dword [esp], edi
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call edi
lea eax, [ebp - 0x20]
sub esp, 4
mov dword [ebp - 0x44], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [esp], 0x13
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym._set_variant
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x34]
mov edi, 1
test eax, eax
je 0x10017388
mov edx, dword [eax]
mov dword [esp + 0x10], 0x13
mov edi, dword [ebp - 0x44]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1002b36c
mov dword [esp + 0xc], edi
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x14
test eax, eax
mov ebx, eax
sete al
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x38]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov esi, dword [ebp - 0x3c]
sub esp, 4
test esi, esi
je 0x100173bf
mov eax, edi
test al, al
je 0x100173bf
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 4]
sub esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001720e
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x1002b31c
mov dword [esp + 8], str.service_start_service
mov dword [esp + 4], 0x10021840
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x100171d6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call sym._map_error
xor ecx, ecx
mov edx, eax
jmp 0x100172fe
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 4
jmp 0x1001720e
mov dword [esp], esi
mov ebx, edi
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x38]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x1001720e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
lea edi, [ebp - 0x20]
call sym._map_error
mov dword [ebp - 0x44], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp], 0x13
call sym._set_variant
jmp 0x10017349
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call sym._map_error
lea edx, [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp], 0x13
call sym._set_variant
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x1001733e