Function at 0x416870
Capabilities:
Create thread
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

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, 0x414
call sym.___main
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateJobObjectW]
lea edx, [ebp - 0x3b8]
mov dword [ebp - 0x3a8], 0x1800
mov ebx, dword [sym.imp.kernel32.dll_SetInformationJobObject]
sub esp, 8
mov dword [0x4180f4], eax
mov dword [esp + 0xc], 0x70
mov dword [esp + 8], edx
mov dword [esp + 4], 9
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jne 0x416903
test byte [0x418030], 2
jne 0x416cd9
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
lea edx, [ebp - 0x3c0]
mov dword [0x4180f0], eax
sub esp, 0x10
mov dword [ebp - 0x3bc], eax
mov eax, dword [0x4180f4]
mov dword [esp + 0xc], 8
mov dword [ebp - 0x3c0], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 7
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jne 0x4169aa
test byte [0x418030], 2
je 0x4168ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_set_completion_port_for_job__err__lu._n
mov dword [esp + 8], str.main
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4168ec
mov dword [esp + 0xc], str.__wine_SvcctlStarted
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov esi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x10
mov dword [ebp - 0x3e0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x418244
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlServiceCurrent
mov dword [esp], 0x80000002
call esi
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x4168f5
lea eax, [ebp - 0x3cc]
mov dword [esp + 4], str.SystemCurrentControlSetControl
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x416bcf
lea eax, [ebp - 0x218]
lea edi, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], pe_nt_image_headers32
mov dword [ebp - 0x3d0], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3c8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3cc]
mov dword [esp + 0x14], edi
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.ServicesPipeTimeout
mov dword [ebp - 0x3d4], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x416af0
cmp dword [ebp - 0x3c8], 1
jne 0x416af0
mov eax, dword [ebp - 0x3d0]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x344], eax
test eax, eax
je 0x416af0
mov dword [0x41824c], eax
mov eax, dword [ebp - 0x3d0]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x3c4], pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3c8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3cc]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x3d4]
mov dword [esp + 4], str.WaitToKillServiceTimeout
call eax
sub esp, 0x18
test eax, eax
jne 0x416b71
cmp dword [ebp - 0x3c8], 1
jne 0x416b71
mov eax, dword [ebp - 0x3d0]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x344], eax
test eax, eax
je 0x416b71
mov dword [0x418248], eax
lea eax, [ebp - 0x344]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3c8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x3c4], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x3d4]
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoStartDelay
call eax
sub esp, 0x18
test eax, eax
je 0x417246
mov eax, dword [ebp - 0x3cc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x30
mov dword [ebp - 0x3ec], eax
call eax
mov dword [0x418060], eax
test eax, eax
je 0x417e59
lea edx, [eax + 8]
mov dword [eax + 4], 0
mov dword [eax + 0xc], edx
mov dword [eax + 8], edx
lea edx, [eax + 0x10]
add eax, 0x18
mov dword [eax - 4], edx
mov dword [eax - 8], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [0x418060]
push edi
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str..._src_wine_programs_services_services.c:_scmdatabase
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemCurrentControlSetServices
mov dword [esp], 0x80000002
call esi
sub esp, 0x24
mov esi, eax
test eax, eax
jne 0x417567
lea eax, [ebp - 0x218]
mov edi, dword [0x418060]
mov esi, ebx
mov ecx, eax
mov dword [ebp - 0x3d0], eax
mov ebx, eax
shr ecx, 0x10
mov dword [ebp - 0x3dc], ecx
lea esi, [esi]
nop
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
cmp eax, 0x103
je 0x416ef7
test eax, eax
je 0x416d41
test byte [0x418030], 2
jne 0x416d0f
inc esi
jmp 0x416ca0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_initialized_job_object__err__lu._n
mov dword [esp + 8], str.main
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4168ec
mov dword [esp + 0x14], esi
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Error__ld_reading_key__d_name___skipping_n
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x416ca0
lea eax, [ebp - 0x3c8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._service_create
test eax, eax
jne 0x416ef7
test byte [0x418030], 8
jne 0x416dbb
lea eax, [ebp - 0x3c4]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x416e8b
test byte [0x418030], 2
jne 0x417594
mov eax, dword [ebp - 0x3c8]
mov dword [esp], eax
inc esi
call sym._free_service_entry
jmp 0x416ca0
cmp dword [ebp - 0x3dc], 0
je 0x41757c
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
je 0x416e12
mov eax, 0x419579
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Loading_service__s_n
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x416d64
inc eax
cmp word [ebx + eax*2], 0
jne 0x416e11
mov dword [ebp - 0x3d4], edi
lea edx, [ebp - 0x342]
mov ecx, ebx
mov word [ebp - 0x344], 0x224c
mov dword [ebp - 0x3d8], esi
mov dword [ebp - 0x3e4], ebx
lea esi, [eax - 1]
test eax, eax
jle 0x417525
lea eax, [ebp - 0x222]
cmp edx, eax
ja 0x417525
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x417498
ja 0x417479
cmp ax, 9
je 0x417507
cmp ax, 0xa
jne 0x4174b4
mov word [edx], 0x6e5c
mov eax, esi
add edx, 2
jmp 0x416e3c
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [ebp - 0x3c4]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [ebp - 0x3d4], eax
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x3d8], ecx
call sym._load_reg_string
mov edx, eax
test eax, eax
je 0x416f69
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3d4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
mov edx, dword [ebp - 0x3d4]
jmp 0x416d9a
call sym._RPC_Init
mov dword [ebp - 0x3f4], eax
test eax, eax
je 0x417263
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [0x418060]
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push esi
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x18], 0
lea eax, [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push eax
mov dword [esp], ebx
call edi
mov eax, dword [0x4180e0]
test eax, eax
je 0x416f51
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x418030], 8
jne 0x4179cf
mov ebx, dword [ebp - 0x3f4]
jmp 0x4168f5
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Group
add eax, 0x44
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ObjectName
add eax, 0x50
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayName
add eax, 0x54
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
add eax, 0x5c
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 8], 1
mov dword [esp + 4], str.DependOnService
add eax, 0x60
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call sym._load_reg_multisz
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DependOnGroup
add eax, 0x64
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call sym._load_reg_multisz
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 4], str.Type
add eax, 0x34
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 4], str.Start
add eax, 0x38
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 4], str.ErrorControl
add eax, 0x3c
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 4], 0x419e8c
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x416ed6
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3d8]
mov dword [esp + 4], str.PreshutdownTimeout
add eax, 0x58
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x416ed6
mov ecx, dword [ebp - 0x3d8]
lea edx, [ebp - 0x344]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [ebp - 0x3e4], edx
call sym._load_reg_dword
mov edx, dword [ebp - 0x3e4]
test eax, eax
jne 0x4171ce
cmp dword [ebp - 0x344], 1
jne 0x4171ce
mov eax, dword [ebp - 0x3d4]
mov dword [eax + 0x78], 1
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call sym._load_reg_dword
test eax, eax
jne 0x417202
cmp dword [ebp - 0x344], 1
jne 0x417202
mov eax, dword [ebp - 0x3d4]
mov dword [eax + 0x7c], 1
movzx edx, byte [0x418030]
test dl, 8
jne 0x417cd2
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [eax + 0x60]
xchg ebx, ecx
mov eax, edx
and eax, 8
cmp word [ebx], 0
je 0x417b42
test al, al
jne 0x417432
mov eax, ebx
jmp 0x41723b
add eax, 2
cmp word [eax], 0
jne 0x417238
lea ebx, [eax + 2]
jmp 0x41721d
cmp dword [ebp - 0x3c8], 4
jne 0x416bbf
mov eax, dword [ebp - 0x344]
mov dword [0x418064], eax
jmp 0x416bbf
mov eax, dword [0x418060]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp - 0x3ec]
call eax
mov dword [ebp - 0x3d8], eax
test eax, eax
je 0x417e38
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ROOT
mov dword [esp], 0
call dword [sym.imp.setupapi.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x3f0], eax
sub esp, 0x10
inc eax
je 0x417a5d
mov edi, dword [ebp - 0x3fc]
lea eax, [edi + 0x18]
mov dword [ebp - 0x400], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x3f8], eax
call eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x3d4], 0
mov dword [ebp - 0x3e8], 0x20
mov dword [ebp - 0x3e4], eax
push edx
mov esi, dword [edi + 0x10]
cmp esi, dword [ebp - 0x3e4]
je 0x4175f7
cmp dword [esi + 0x38], 2
jbe 0x4173d1
mov edx, dword [ebp - 0x3f0]
cmp edx, 0xffffffff
je 0x41742b
lea edi, [ebp - 0x340]
mov ecx, 6
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3dc], esi
lea edi, [ebp - 0x344]
mov esi, edx
mov dword [ebp - 0x344], 0x1c
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.setupapi.dll_SetupDiEnumDeviceInfo]
sub esp, 0xc
test eax, eax
je 0x4175d8
mov eax, dword [ebp - 0x3d0]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x208
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.setupapi.dll_SetupDiGetDeviceRegistryPropertyW]
sub esp, 0x1c
test eax, eax
jne 0x4173ab
inc ebx
jmp 0x41734e
mov eax, dword [ebp - 0x3dc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3d0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4173a8
mov esi, dword [ebp - 0x3dc]
mov eax, dword [ebp - 0x3d4]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x3e8]
cmp edi, eax
jb 0x417412
mov ebx, eax
add ebx, eax
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x4175f7
mov dword [ebp - 0x3e8], ebx
mov dword [ebp - 0x3d8], eax
lock inc dword [esi + 0xc]
mov ecx, dword [ebp - 0x3d4]
mov eax, dword [ebp - 0x3d8]
mov dword [ebp - 0x3d4], edi
mov dword [eax + ecx*4], esi
mov esi, dword [esi]
jmp 0x417300
mov eax, ebx
mov dword [ebp - 0x3d8], ecx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x418030]
mov ecx, dword [ebp - 0x3d8]
jmp 0x417234
cmp ax, 0x22
je 0x417516
cmp ax, 0x5c
jne 0x4174a7
mov word [edx], 0x5c5c
mov eax, esi
add edx, 2
jmp 0x416e3c
mov word [edx], 0x725c
mov eax, esi
add edx, 2
jmp 0x416e3c
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4175e5
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x41b46c]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + 0x41b46c]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x41b46c]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + 0x41b46c]
mov byte [edx - 1], al
mov eax, esi
mov byte [edx - 2], bl
jmp 0x416e3c
mov word [edx], 0x745c
mov eax, esi
add edx, 2
jmp 0x416e3c
mov word [edx], 0x225c
mov eax, esi
add edx, 2
jmp 0x416e3c
mov eax, esi
mov byte [edx], 0x22
mov edi, dword [ebp - 0x3d4]
mov esi, dword [ebp - 0x3d8]
mov ebx, dword [ebp - 0x3e4]
test eax, eax
jle 0x4175ef
mov word [edx + 1], 0x2e2e
lea eax, [edx + 4]
mov byte [edx + 3], 0x2e
lea edx, [ebp - 0x344]
mov byte [eax], 0
mov dword [esp], edx
call sym.___wine_dbg_strdup
jmp 0x416de4
mov eax, dword [0x418060]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4168f5
movzx eax, bx
mov dword [esp], 0x41956c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x416de4
mov eax, ebx
mov dword [ebp - 0x3d4], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x3d4]
mov dword [esp + 0xc], str.Error__ld_reading_registry_key_for_service__s___skipping_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x416da7
mov esi, dword [ebp - 0x3dc]
mov esi, dword [esi]
jmp 0x417300
mov byte [edx], al
inc edx
mov eax, esi
jmp 0x416e3c
lea eax, [edx + 1]
jmp 0x417551
mov eax, dword [ebp - 0x400]
xor edi, edi
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3dc], eax
call eax
push eax
mov eax, dword [ebp - 0x3d4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 0xc], sym._compare_tags
mov dword [esp], eax
mov dword [esp + 8], 4
call dword [sym.imp.ucrtbase.dll_qsort]
mov eax, dword [ebp - 0x3fc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._scmdatabase_lock_startup
cmp dword [ebp - 0x3d4], ebx
je 0x4176e8
mov eax, dword [ebp - 0x3d8]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
je 0x417682
test byte [0x418030], 8
jne 0x4176b6
mov eax, dword [ebp - 0x3d8]
inc ebx
mov dword [eax + edi*4], esi
inc edi
jmp 0x417651
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._service_start
test eax, eax
je 0x4176ab
test byte [0x418030], 1
jne 0x417a02
mov dword [esp], esi
inc ebx
call sym._release_service
jmp 0x417651
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.delayed_starting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x417675
mov ecx, dword [ebp - 0x3fc]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x417a47
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x418078], eax
test eax, eax
je 0x417ab1
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp], 8
call eax
mov edx, dword [ebp - 0x3d4]
test eax, eax
mov esi, eax
je 0x417a47
mov dword [eax], edi
mov eax, dword [ebp - 0x3d8]
mov ecx, 7
lea edi, [ebp - 0x214]
mov dword [esi + 4], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xffffd8f0
mov dword [ebp - 0x210], edx
mov eax, ecx
mul dword [0x418064]
mov dword [esp + 4], esi
sub edx, dword [0x418064]
mov dword [esp], sym._delayed_autostart_callback_12
mov dword [ebp - 0x218], 1
mov ecx, eax
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x20c], sym._delayed_autostart_cancel_callback_8
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x340], edx
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x417af6
lea edx, [ebp - 0x344]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetThreadpoolTimer]
mov edi, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x10
mov eax, dword [ebp - 0x3f0]
mov dword [esp], eax
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._process_monitor_thread_proc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov ebx, eax
mov eax, dword [ebp - 0x3e0]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov esi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [0x4180e4]
push ecx
mov dword [ebp - 0x3d8], esi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call esi
push eax
push eax
mov eax, dword [0x4180f0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_PostQueuedCompletionStatus]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call esi
mov ebx, dword [0x418060]
mov esi, dword [ebp - 0x3d0]
push eax
mov ecx, dword [ebp - 0x3f8]
push eax
lea eax, [ebx + 0x18]
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x218], esi
mov dword [esp], eax
mov dword [ebp - 0x214], esi
call ecx
lea ecx, [ebx + 8]
push eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3d4], ecx
cmp ecx, eax
je 0x417aa0
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x3e4], edi
mov dword [edx], eax
mov edx, dword [ebp - 0x214]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x214], eax
mov dword [eax], esi
mov esi, dword [ebp - 0x3e0]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jmp 0x41796f
cmp edi, dword [ebp - 0x3d0]
je 0x417979
lock inc dword [edi + 0xc]
mov dword [esp], edi
call sym._process_terminate
mov eax, dword [ebp - 0x3dc]
mov dword [esp], esi
call eax
push eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [edi + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x3d8]
call eax
push eax
push eax
mov eax, dword [ebp - 0x3f8]
mov dword [esp], esi
call eax
push edx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x3d4]
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ebx + 0xc], edi
mov dword [esp], edi
call sym._release_process
mov edi, dword [ebp - 0x218]
test edi, edi
jne 0x417904
mov eax, dword [ebp - 0x3e0]
mov edi, dword [ebp - 0x3e4]
mov dword [esp], eax
mov eax, dword [ebp - 0x3dc]
call eax
push eax
mov eax, dword [0x418078]
test eax, eax
je 0x4179c5
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x418078]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call sym._RPC_Stop
jmp 0x416f10
mov eax, dword [ebp - 0x3f4]
mov dword [esp + 0xc], str.services.exe_exited_with_code__ld_n
mov dword [esp + 8], str.main
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x416f5e
mov dword [ebp - 0x3e4], eax
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x3e4]
mov dword [esp + 0xc], str.Auto_start_service__s_failed_to_start:__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 4], 0x418030
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x4176ab
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call edi
jmp 0x4177e1
test byte [0x418030], 2
je 0x4172c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_enumerate_devices__error__lx._n
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4172c0
mov dword [ebp - 0x3e4], edi
mov esi, dword [ebp - 0x3e0]
jmp 0x41796f
test byte [0x418030], 2
je 0x417a47
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThreadpoolCleanupGroup_failed_with_error__lu_n
mov dword [esp + 8], str.schedule_delayed_autostart
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x417a4d
test byte [0x418030], 2
jne 0x417b0f
mov dword [esp], esi
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
jmp 0x417a4d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThreadpoolWait_failed:__lu_n
mov dword [esp + 8], str.schedule_delayed_autostart
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x417aff
mov ebx, ecx
test al, al
je 0x417b8a
mov eax, dword [ebp - 0x3d4]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x419884
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x3d4]
mov edx, dword [eax + 0x64]
xchg ebx, edx
cmp word [ebx], 0
je 0x417bf3
test byte [0x418030], 8
jne 0x417bb6
mov eax, ebx
jmp 0x417bab
add eax, 2
cmp word [eax], 0
jne 0x417ba8
lea ebx, [eax + 2]
jmp 0x417b95
mov eax, ebx
mov dword [ebp - 0x3d4], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x3d4]
jmp 0x417ba4
mov eax, dword [ebp - 0x3c4]
mov ebx, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
mov eax, dword [ebp - 0x3c8]
cmp dword [eax + 0x34], 0
jne 0x417c52
test byte [0x418030], 8
je 0x416dad
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Even_the_service_type_not_set_for_service__s___skipping_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x416da7
mov dword [esp], eax
call sym._validate_service_config
test eax, eax
jne 0x417c9f
test byte [0x418030], 2
je 0x416da7
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Invalid_configuration_of_service__s___skipping_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x416da7
mov eax, dword [ebp - 0x3c8]
inc esi
mov edx, dword [eax + 0x34]
mov dword [eax + 8], edi
mov dword [eax + 0x14], edx
lea edx, [edi + 0x10]
mov dword [eax], edx
mov edx, dword [edi + 0x14]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x3c8]
mov dword [esp], eax
call sym._release_service
jmp 0x416ca0
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x40]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Image_path_____________s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x418030]
test dl, 8
je 0x417212
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x44]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Group__________________s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x418030]
test dl, 8
je 0x417212
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x50]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Service_account_name___s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x418030]
test dl, 8
je 0x417212
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x54]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Display_name___________s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x418030]
test dl, 8
je 0x417212
mov eax, dword [ebp - 0x3d4]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x419884
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418030
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x418030]
jmp 0x417212
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3f8], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3dc], eax
jmp 0x4177f1
mov esi, 0x46a
mov ebx, esi
jmp 0x4168f5