Function at 0x692ca7a0
Capabilities:
Modify service

Disassembly:
cmp dword [section..bss], 2
je 0x692ca938
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
test byte [0x692d1118], 8
jne 0x692ca8c0
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 0x692ca8f0
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 0x692ca878
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_QueryServiceConfigW]
lea edi, [ebp - 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x10
test eax, eax
jne 0x692ca84a
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
je 0x692ca980
test byte [0x692d1118], 4
jne 0x692ca940
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 [0x692d1118], 4
je 0x692ca865
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], 0x692d1118
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x692ca865
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], 0x692d1118
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x692ca7c3
test byte [0x692d1118], 4
je 0x692ca86d
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], 0x692d1118
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x692ca86d
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], 0x692d1118
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x692ca857
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x692ca857
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp], esi
call eax
mov ecx, dword [ebp - 0x30]
sub esp, 0x10
test eax, eax
je 0x692caa40
mov eax, dword [ecx + 4]
mov dword [section..bss], eax
cmp eax, 2
je 0x692caa40
mov dword [ebp - 0x2c], 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 - 0x2c]
sub esp, 0x2c
test eax, eax
je 0x692caa40
mov dword [section..bss], 2
lea esi, [esi]
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x692ca857