Function at 0x417350
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, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x438
call dbg.__main
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateJobObjectW]
lea edx, [ebp - 0x3c0]
mov dword [ebp - 0x3b0], 0x1800
mov ebx, dword [sym.imp.kernel32.dll_SetInformationJobObject]
sub esp, 8
mov dword [0x4210dc], 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 0x4173e3
test byte [global___dbch.0], 2
jne 0x41783b
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 - 0x3c8]
mov dword [0x4210d8], eax
sub esp, 0x10
mov dword [ebp - 0x3c4], eax
mov eax, dword [0x4210dc]
mov dword [esp + 0xc], 8
mov dword [ebp - 0x3c8], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 7
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jne 0x41748a
test byte [global___dbch.0], 2
je 0x4173cc
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], global___func__.23
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4173cc
mov dword [esp + 0xc], global_svcctl_started_event
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 - 0x3ec], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x4210e0
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], global_service_current_key_str
mov dword [esp], 0x80000002
call esi
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x4173d5
lea eax, [ebp - 0x3d4]
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 0x4176aa
lea eax, [ebp - 0x3cc]
mov dword [esp + 8], 0
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
lea eax, [pending.next]
mov dword [ebp - 0x3dc], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3d0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x3cc], pe_nt_image_headers32
mov dword [esp + 4], str.ServicesPipeTimeout
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x4175cb
cmp dword [ebp - 0x3d0], 1
jne 0x4175cb
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x34c], eax
test eax, eax
je 0x4175cb
mov dword [0x41906c], eax
lea eax, [ebp - 0x3cc]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3cc], pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3d0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d4]
mov dword [esp + 4], str.WaitToKillServiceTimeout
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x41764c
cmp dword [ebp - 0x3d0], 1
jne 0x41764c
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x34c], eax
test eax, eax
je 0x41764c
mov dword [0x419068], eax
lea eax, [ebp - 0x3cc]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x34c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3d0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x3cc], 4
mov dword [esp + 4], str.AutoStartDelay
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x417cb6
mov eax, dword [ebp - 0x3d4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x30
mov dword [ebp - 0x3f8], eax
call eax
mov dword [0x421020], eax
test eax, eax
je 0x418584
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 [0x421020]
push ecx
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str._home_ubuntu_buildbot_runners_wine_wine_src_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 0x418002
lea eax, [pending.next]
mov esi, dword [0x421020]
mov dword [ebp - 0x3dc], eax
shr eax, 0x10
mov dword [ebp - 0x3e4], eax
jmp 0x41777f
test byte [global___dbch.0], 2
jne 0x417871
add ebx, 1
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 0xc], 0x104
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
cmp eax, 0x103
je 0x4179b2
test eax, eax
jne 0x41776f
lea eax, [ebp - 0x3d0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp], eax
call dbg.service_create
test eax, eax
jne 0x4179b2
test byte [global___dbch.0], 8
jne 0x417902
lea eax, [ebp - 0x3cc]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x3d0]
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x4178a2
test byte [global___dbch.0], 2
jne 0x418033
mov dword [esp], edi
call dbg.free_service_entry
jmp 0x41777c
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], global___func__.23
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4173cc
mov dword [esp + 0x14], ebx
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], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41777c
mov ecx, dword [ebp - 0x3cc]
lea eax, [edi + 0x40]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.ImagePath
mov dword [esp], ecx
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x3e0], ecx
call dbg.load_reg_string
mov edx, eax
test eax, eax
je 0x417a2e
mov eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x3e0], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
mov edx, dword [ebp - 0x3e0]
jmp 0x417821
cmp dword [ebp - 0x3e4], 0
je 0x418017
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x417cd3
mov edx, dword [ebp - 0x3dc]
jmp 0x41793b
add eax, 1
cmp word [edx + eax*2], 0
jne 0x417938
mov word [ebp - 0x34c], 0x224c
mov ecx, dword [ebp - 0x3dc]
lea edx, [ebp - 0x34a]
mov dword [ebp - 0x3e0], esi
mov dword [ebp - 0x3e8], ebx
lea edi, [eax - 1]
test eax, eax
jle 0x417fc9
lea eax, [ebp - 0x22a]
cmp edx, eax
ja 0x417fc9
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x417f3c
ja 0x417f1d
cmp ax, 9
je 0x417fab
cmp ax, 0xa
jne 0x417f58
mov word [edx], 0x6e5c
mov eax, edi
add edx, 2
jmp 0x417963
call dbg.RPC_Init
mov dword [ebp - 0x400], eax
test eax, eax
je 0x417d05
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3e0], eax
mov ebx, dword [0x421020]
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]
mov eax, dword [ebp - 0x3e0]
push edi
mov dword [esp], ebx
call eax
mov eax, dword [0x4210e4]
test eax, eax
je 0x417a16
mov dword [esp], eax
call sym._DestroyEnvironmentBlock_4
push ecx
test byte [global___dbch.0], 8
jne 0x418094
mov ebx, dword [ebp - 0x400]
jmp 0x4173d5
lea eax, [edi + 0x44]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.Group
mov dword [esp], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x50]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.ObjectName
mov dword [esp], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x54]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.Description
mov dword [esp], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x60]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.DependOnService
mov dword [esp], eax
call dbg.load_reg_multisz
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.DependOnGroup
mov dword [esp], eax
call dbg.load_reg_multisz
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x34]
mov dword [esp + 4], str.Type
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x38]
mov dword [esp + 4], str.Start
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x3c]
mov dword [esp + 4], str.ErrorControl
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x48]
mov dword [esp + 4], 0x41b680
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x4178e1
lea eax, [edi + 0x58]
mov dword [esp + 4], str.PreshutdownTimeout
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x4178e1
mov eax, dword [ebp - 0x3e0]
lea edx, [ebp - 0x34c]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x3e8], edx
call dbg.load_reg_dword
mov edx, dword [ebp - 0x3e8]
test eax, eax
jne 0x417c4b
cmp dword [ebp - 0x34c], 1
jne 0x417c4b
mov dword [edi + 0x78], 1
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call dbg.load_reg_dword
test eax, eax
jne 0x417c79
cmp dword [ebp - 0x34c], 1
jne 0x417c79
mov dword [edi + 0x7c], 1
movzx eax, byte [global___dbch.0]
test al, 8
jne 0x418762
mov ecx, dword [edi + 0x60]
xchg ebx, ecx
mov edx, eax
and edx, 8
cmp word [ebx], 0
je 0x4185e9
test dl, dl
jne 0x417ed6
mov edx, ebx
jmp 0x417cab
add edx, 2
cmp word [edx], 0
jne 0x417ca8
lea ebx, [edx + 2]
jmp 0x417c8d
cmp dword [ebp - 0x3d0], 4
jne 0x41769a
mov eax, dword [ebp - 0x34c]
mov dword [0x419064], eax
jmp 0x41769a
mov eax, 0x41ac2d
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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4177df
mov eax, dword [0x421020]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x3f8]
call eax
mov dword [ebp - 0x3e4], eax
test eax, eax
je 0x4185c3
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ROOT
mov dword [esp], 0
call sym._SetupDiGetClassDevsW_16
mov dword [ebp - 0x3fc], eax
sub esp, 0x10
add eax, 1
je 0x418526
mov edi, dword [ebp - 0x408]
lea eax, [edi + 0x18]
mov dword [ebp - 0x40c], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x404], eax
call eax
mov dword [ebp - 0x3e0], 0
push eax
lea eax, [edi + 0x10]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x3f4], 0x20
mov dword [ebp - 0x3f0], eax
cmp esi, dword [ebp - 0x3f0]
je 0x4180c7
cmp dword [esi + 0x38], 2
jbe 0x417e74
mov edx, dword [ebp - 0x3fc]
cmp edx, 0xffffffff
je 0x417ecf
lea edi, [ebp - 0x348]
mov ecx, 6
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3e8], esi
lea edi, [ebp - 0x34c]
mov esi, edx
mov dword [ebp - 0x34c], 0x1c
jmp 0x417df6
add ebx, 1
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._SetupDiEnumDeviceInfo_12
sub esp, 0xc
test eax, eax
je 0x41807b
mov eax, dword [ebp - 0x3dc]
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 sym._SetupDiGetDeviceRegistryPropertyW_28
sub esp, 0x1c
test eax, eax
je 0x417df3
mov eax, dword [ebp - 0x3e8]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x417df3
mov esi, dword [ebp - 0x3e8]
mov eax, dword [ebp - 0x3e0]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x3f4]
cmp edi, eax
jb 0x417eb5
mov ebx, eax
add ebx, eax
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3e4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x4180c7
mov dword [ebp - 0x3f4], ebx
mov dword [ebp - 0x3e4], eax
lock add dword [esi + 0xc], 1
mov ecx, dword [ebp - 0x3e0]
mov eax, dword [ebp - 0x3e4]
mov dword [ebp - 0x3e0], edi
mov dword [eax + ecx*4], esi
mov esi, dword [esi]
jmp 0x417da3
mov eax, ebx
mov dword [ebp - 0x3e0], 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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [global___dbch.0]
mov ecx, dword [ebp - 0x3e0]
jmp 0x417ca4
cmp ax, 0x22
je 0x417fba
cmp ax, 0x5c
jne 0x417f4b
mov word [edx], 0x5c5c
mov eax, edi
add edx, 2
jmp 0x417963
mov word [edx], 0x725c
mov eax, edi
add edx, 2
jmp 0x417963
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x418088
mov esi, eax
mov byte [edx], 0x5c
add edx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefvalidate_service_config]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefvalidate_service_config]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefvalidate_service_config]
and esi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefvalidate_service_config]
mov byte [edx - 1], al
mov eax, edi
mov byte [edx - 2], bl
jmp 0x417963
mov word [edx], 0x745c
mov eax, edi
add edx, 2
jmp 0x417963
mov word [edx], 0x225c
mov eax, edi
add edx, 2
jmp 0x417963
mov byte [edx], 0x22
mov esi, dword [ebp - 0x3e0]
lea eax, [edx + 1]
mov ebx, dword [ebp - 0x3e8]
test edi, edi
jle 0x417fec
mov word [edx + 1], 0x2e2e
lea eax, [edx + 4]
mov byte [edx + 3], 0x2e
lea edx, [ebp - 0x34c]
mov byte [eax], 0
mov dword [esp], edx
call dbg.__wine_dbg_strdup
jmp 0x417cd8
mov eax, dword [0x421020]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4173d5
movzx eax, word [ebp - 0x3dc]
mov dword [esp], 0x41ac20
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x417cd8
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3e0], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x3e0]
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], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41782e
mov esi, dword [ebp - 0x3e8]
mov esi, dword [esi]
jmp 0x417da3
mov byte [edx], al
add edx, 1
mov eax, edi
jmp 0x417963
mov eax, dword [ebp - 0x400]
mov dword [esp + 0xc], str.services.exe_exited_with_code__ld_n
mov dword [esp + 8], global___func__.23
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x417a23
mov eax, dword [ebp - 0x40c]
xor edi, edi
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3e8], eax
call eax
push eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3e4]
mov dword [esp + 0xc], dbg.compare_tags
mov dword [esp], eax
mov dword [esp + 8], 4
call dword [sym.imp.ucrtbase.dll_qsort]
mov eax, dword [ebp - 0x408]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._scmdatabase_lock_startup
jmp 0x41813b
test byte [global___dbch.0], 8
jne 0x418185
mov eax, dword [ebp - 0x3e4]
mov dword [eax + edi*4], esi
add edi, 1
add ebx, 1
cmp dword [ebp - 0x3e0], ebx
je 0x4181ba
mov eax, dword [ebp - 0x3e4]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x418123
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dbg.service_start
test eax, eax
je 0x41817b
test byte [global___dbch.0], 1
jne 0x418486
mov dword [esp], esi
call dbg.release_service
jmp 0x418138
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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41812c
mov ecx, dword [ebp - 0x408]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x418505
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x4210d4], eax
test eax, eax
je 0x4184cb
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3f8]
mov dword [esp], 8
call eax
mov edx, dword [ebp - 0x3e0]
test eax, eax
mov esi, eax
je 0x418505
mov dword [eax], edi
mov eax, dword [ebp - 0x3e4]
mov ecx, 7
lea edi, [pending.prev]
mov dword [esi + 4], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x218], edx
mov eax, 0xffffd8f0
mul dword [0x419064]
sub edx, dword [0x419064]
mov dword [esp + 4], esi
mov dword [pending.next], 1
mov ecx, eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x214], dbg.delayed_autostart_cancel_callback
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x348], edx
mov dword [esp + 8], eax
mov dword [esp], dbg.delayed_autostart_callback
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x418569
lea edx, [ebp - 0x34c]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_SetThreadpoolTimer]
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x10
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3fc]
mov dword [esp], eax
call sym._SetupDiDestroyDeviceInfoList_4
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.process_monitor_thread_proc
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov ebx, eax
mov eax, dword [ebp - 0x3ec]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [section..bss]
push edx
mov dword [ebp - 0x3ec], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
mov eax, dword [0x4210d8]
push ecx
push ecx
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 edi
mov edi, dword [ebp - 0x3dc]
mov eax, dword [ebp - 0x404]
push ebx
push ebx
mov ebx, dword [0x421020]
mov dword [pending.next], edi
lea esi, [ebx + 0x18]
mov dword [pending.prev], edi
mov dword [esp], esi
call eax
lea ecx, [ebx + 8]
push eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3e4], ecx
cmp ecx, eax
je 0x418432
mov edx, dword [pending.prev]
mov dword [edx], eax
mov edx, dword [pending.prev]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xc]
mov dword [pending.prev], eax
mov dword [eax], edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jmp 0x418432
cmp edi, dword [ebp - 0x3dc]
je 0x41843c
lock add dword [edi + 0xc], 1
mov dword [esp], edi
call dbg.process_terminate
mov eax, dword [ebp - 0x3e8]
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 - 0x3ec]
call eax
push eax
push eax
mov eax, dword [ebp - 0x404]
mov dword [esp], esi
call eax
push eax
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 - 0x3e4]
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 dbg.release_process
mov edi, dword [pending.next]
test edi, edi
jne 0x4183c6
mov eax, dword [ebp - 0x3e8]
mov dword [esp], esi
call eax
push eax
mov eax, dword [0x4210d4]
test eax, eax
je 0x41847c
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x4210d4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call dbg.RPC_Stop
jmp 0x4179d0
mov dword [ebp - 0x3f0], eax
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x3f0]
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], global___dbch.0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x41817b
test byte [global___dbch.0], 2
je 0x418505
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], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3e4]
mov dword [esp], eax
mov eax, dword [ebp - 0x3e0]
call eax
jmp 0x4182b6
test byte [global___dbch.0], 2
je 0x417d63
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], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x417d63
test byte [global___dbch.0], 2
jne 0x418590
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x3e0], eax
call eax
jmp 0x418510
mov esi, 0x46a
mov ebx, esi
jmp 0x4173d5
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], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x418572
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3e0], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x404], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3e8], eax
jmp 0x4182c5
mov ebx, ecx
test dl, dl
je 0x41862b
mov eax, dword [edi + 0x64]
mov edx, str._none_
cmp word [eax], 0
mov eax, 0x41af58
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], global___dbch.0
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [edi + 0x64]
xchg ebx, edx
cmp word [ebx], 0
je 0x41868e
test byte [global___dbch.0], 8
jne 0x418651
mov eax, ebx
jmp 0x418646
add eax, 2
cmp word [eax], 0
jne 0x418643
lea ebx, [eax + 2]
jmp 0x418630
mov eax, ebx
mov dword [ebp - 0x3e0], 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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x3e0]
jmp 0x41863f
mov eax, dword [ebp - 0x3cc]
mov ebx, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
cmp dword [edi + 0x34], 0
jne 0x4186eb
test byte [global___dbch.0], 8
je 0x41782e
mov eax, dword [ebp - 0x3dc]
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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41782e
mov dword [esp], edi
call dbg.validate_service_config
test eax, eax
jne 0x41873c
test byte [global___dbch.0], 2
je 0x41782e
mov eax, dword [ebp - 0x3dc]
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], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41782e
mov eax, dword [edi + 0x34]
mov dword [edi + 8], esi
mov dword [edi + 0x14], eax
lea eax, [esi + 0x10]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [esi + 0x14], edi
mov dword [esp], edi
call dbg.release_service
jmp 0x41777c
mov eax, dword [edi + 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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [global___dbch.0]
test al, 8
je 0x417c88
mov eax, dword [edi + 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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [global___dbch.0]
test al, 8
je 0x417c88
mov eax, dword [edi + 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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [global___dbch.0]
test al, 8
je 0x417c88
mov eax, dword [edi + 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], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [global___dbch.0]
test al, 8
je 0x417c88
mov eax, dword [edi + 0x60]
mov edx, str._none_
cmp word [eax], 0
mov eax, 0x41af58
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], global___dbch.0
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [global___dbch.0]
jmp 0x417c88