Function at 0x1000a7b0
Capabilities:
Modify service

Disassembly:
cmp dword [section..bss], 2
je 0x1000a948
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
test byte [0x10011118], 8
jne 0x1000a8d0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000a900
mov dword [esp + 8], 3
mov dword [esp + 4], str.Schedule
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x1000a888
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_QueryServiceConfigW]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x14], eax
call eax
sub esp, 0x10
test eax, eax
jne 0x1000a85a
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
je 0x1000a990
test byte [0x10011118], 4
jne 0x1000a950
mov dword [esp], esi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
test byte [0x10011118], 4
je 0x1000a875
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_service___lu__n
mov dword [esp + 8], str.schedsvc_auto_start
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10011118
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000a875
mov dword [esp + 0xc], str.changing_service_start_type_to_SERVICE_AUTO_START_n
mov dword [esp + 8], str.schedsvc_auto_start
mov dword [esp + 4], 0x10011118
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000a7d3
test byte [0x10011118], 4
je 0x1000a87d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_SCM___lu__n
mov dword [esp + 8], str.schedsvc_auto_start
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10011118
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000a87d
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_query_service_config___lu__n
mov dword [esp + 8], str.schedsvc_auto_start
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10011118
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000a867
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x1000a867
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp], esi
call eax
mov ecx, dword [ebp - 0x18]
sub esp, 0x10
test eax, eax
je 0x1000aa50
mov eax, dword [ecx + 4]
mov dword [section..bss], eax
cmp eax, 2
je 0x1000aa50
mov dword [ebp - 0x14], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 2
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_ChangeServiceConfigW]
mov ecx, dword [ebp - 0x14]
sub esp, 0x2c
test eax, eax
je 0x1000aa50
mov dword [section..bss], 2
lea esi, [esi]
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000a867