Function at 0x4152f0
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 dbg.__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 [0x41c0bc], 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 0x415383
test byte [0x417070], 2
jne 0x4157e6
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 [0x41c0b8], eax
sub esp, 0x10
mov dword [ebp - 0x3bc], eax
mov eax, dword [0x41c0bc]
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 0x41542a
test byte [0x417070], 2
je 0x41536c
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__.22
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x41536c
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 - 0x3d8], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x41c0c0
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 0x415375
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 0x41564f
lea eax, [pending.next]
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 0x415570
cmp dword [ebp - 0x3c8], 1
jne 0x415570
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 0x415570
mov dword [0x41706c], 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 0x4155f1
cmp dword [ebp - 0x3c8], 1
jne 0x4155f1
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 0x4155f1
mov dword [0x417068], 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 0x415cef
mov eax, dword [ebp - 0x3cc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ecx
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x30
mov dword [ebp - 0x3e4], eax
call eax
mov dword [0x41c184], eax
test eax, eax
je 0x4160a8
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 + 8], 0x10000000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionEx]
mov eax, dword [0x41c184]
sub esp, 0xc
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str..._wine_9.5_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 0x416093
lea eax, [pending.next]
mov esi, ebx
mov edi, dword [0x41c184]
mov ecx, eax
mov dword [ebp - 0x3d0], eax
mov ebx, eax
shr ecx, 0x10
mov dword [ebp - 0x3e0], ecx
jmp 0x41573c
test byte [0x417070], 2
jne 0x41581c
add esi, 1
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 0x41598c
test eax, eax
jne 0x41572c
lea eax, [ebp - 0x3c8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dbg.service_create
test eax, eax
jne 0x41598c
test byte [0x417070], 8
jne 0x4158b9
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 0x41584d
test byte [0x417070], 2
jne 0x416043
mov eax, dword [ebp - 0x3c8]
mov dword [esp], eax
call dbg.free_service_entry
jmp 0x415739
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__.22
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x41536c
mov dword [esp + 0x14], 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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x415739
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 - 0x3dc], ecx
call dbg.load_reg_string
mov edx, eax
test eax, eax
je 0x415a09
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 0x4157c6
cmp dword [ebp - 0x3e0], 0
je 0x41602b
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
je 0x415912
mov eax, 0x419c2d
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x415790
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x41590f
mov dword [ebp - 0x3d4], edi
lea edx, [ebp - 0x342]
mov ecx, ebx
mov word [ebp - 0x344], 0x224c
mov dword [ebp - 0x3dc], esi
mov dword [ebp - 0x3e8], ebx
lea esi, [eax - 1]
test eax, eax
jle 0x415fe9
lea eax, [ebp - 0x222]
cmp edx, eax
ja 0x415fe9
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x415f5c
ja 0x415f3d
cmp ax, 9
je 0x415fcb
cmp ax, 0xa
jne 0x415f6b
mov word [edx], 0x6e5c
mov eax, esi
add edx, 2
jmp 0x41593c
call dbg.RPC_Init
mov dword [ebp - 0x3ec], eax
test eax, eax
je 0x415d0c
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d4], eax
mov ebx, dword [0x41c184]
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 - 0x3d4]
push edi
mov dword [esp], ebx
call eax
mov eax, dword [0x41c0c4]
test eax, eax
je 0x4159f1
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x417070], 8
jne 0x4160bc
mov ebx, dword [ebp - 0x3ec]
jmp 0x415375
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Group
add eax, 0x44
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ObjectName
add eax, 0x50
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayName
add eax, 0x54
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
add eax, 0x5c
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call dbg.load_reg_string
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 8], 1
mov dword [esp + 4], str.DependOnService
add eax, 0x60
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call dbg.load_reg_multisz
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DependOnGroup
add eax, 0x64
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call dbg.load_reg_multisz
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 4], str.Type
add eax, 0x34
mov dword [esp], ecx
mov dword [esp + 8], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 4], str.Start
add eax, 0x38
mov dword [esp], ecx
mov dword [esp + 8], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 4], str.ErrorControl
add eax, 0x3c
mov dword [esp], ecx
mov dword [esp + 8], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 4], 0x41a640
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x415898
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 4], str.PreshutdownTimeout
add eax, 0x58
mov dword [esp], ecx
mov dword [esp + 8], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x415898
mov ecx, dword [ebp - 0x3dc]
lea edx, [ebp - 0x344]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [ebp - 0x3e8], edx
call dbg.load_reg_dword
mov edx, dword [ebp - 0x3e8]
test eax, eax
jne 0x415c6e
cmp dword [ebp - 0x344], 1
jne 0x415c6e
mov eax, dword [ebp - 0x3d4]
mov dword [eax + 0x78], 1
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call dbg.load_reg_dword
test eax, eax
jne 0x415ca2
cmp dword [ebp - 0x344], 1
jne 0x415ca2
mov eax, dword [ebp - 0x3d4]
mov dword [eax + 0x7c], 1
movzx eax, byte [0x417070]
test al, 8
jne 0x4167c4
mov ecx, dword [ebp - 0x3d4]
mov edx, ebx
mov ecx, dword [ecx + 0x60]
mov ebx, ecx
mov ecx, edx
mov edx, eax
and edx, 8
cmp word [ebx], 0
je 0x41662b
test dl, dl
jne 0x415ef6
mov edx, ebx
jmp 0x415cde
add edx, 2
cmp word [edx], 0
jne 0x415cdb
sub edx, ebx
and edx, 0xfffffffe
lea ebx, [ebx + edx + 2]
jmp 0x415cc0
cmp dword [ebp - 0x3c8], 4
jne 0x41563f
mov eax, dword [ebp - 0x344]
mov dword [0x417064], eax
jmp 0x41563f
mov eax, dword [0x41c184]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x3f8], eax
mov eax, dword [ebp - 0x3e4]
call eax
mov dword [ebp - 0x3e0], eax
test eax, eax
je 0x41651d
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]
sub esp, 0x10
mov dword [ebp - 0x3fc], eax
add eax, 1
je 0x416543
mov edi, dword [ebp - 0x3f8]
lea eax, [edi + 0x18]
mov dword [ebp - 0x400], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x3f4], eax
call eax
mov esi, dword [ebp - 0x3fc]
mov dword [ebp - 0x3dc], 0
push eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x3f0], 0x20
mov dword [ebp - 0x3d4], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x3e8], eax
mov ecx, dword [ebp - 0x3e8]
cmp dword [ebp - 0x3d4], ecx
je 0x4160ef
mov eax, dword [ebp - 0x3d4]
cmp dword [eax + 0x38], 2
jbe 0x415e82
cmp esi, 0xffffffff
je 0x415ee3
lea edi, [ebp - 0x340]
mov ecx, 6
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x344]
mov dword [ebp - 0x344], 0x1c
jmp 0x415e08
add ebx, 1
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 0x415ee3
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
je 0x415e05
mov eax, dword [ebp - 0x3d4]
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 0x415e05
mov eax, dword [ebp - 0x3dc]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x3f0]
cmp edi, eax
jb 0x415ec3
mov ebx, eax
add ebx, eax
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x4160ef
mov dword [ebp - 0x3f0], ebx
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3d4]
lock add dword [eax + 0xc], 1
mov edx, dword [ebp - 0x3dc]
mov ecx, dword [ebp - 0x3e0]
mov dword [ebp - 0x3dc], edi
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax]
mov dword [ebp - 0x3d4], eax
jmp 0x415db7
mov eax, ebx
mov dword [ebp - 0x3dc], ecx
call sym._wine_dbgstr_wn.constprop.16
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [0x417070]
mov ecx, dword [ebp - 0x3dc]
jmp 0x415cd7
cmp ax, 0x22
je 0x415fda
cmp ax, 0x5c
jne 0x415f6b
mov word [edx], 0x5c5c
mov eax, esi
add edx, 2
jmp 0x41593c
mov word [edx], 0x725c
mov eax, esi
add edx, 2
jmp 0x41593c
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x416087
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefvalidate_service_config]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefvalidate_service_config]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefvalidate_service_config]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefvalidate_service_config]
mov byte [edx - 1], al
mov eax, esi
mov byte [edx - 2], bl
jmp 0x41593c
mov word [edx], 0x745c
mov eax, esi
add edx, 2
jmp 0x41593c
mov word [edx], 0x225c
mov eax, esi
add edx, 2
jmp 0x41593c
mov eax, esi
mov edi, dword [ebp - 0x3d4]
mov esi, dword [ebp - 0x3dc]
mov byte [edx], 0x22
mov ebx, dword [ebp - 0x3e8]
test eax, eax
jle 0x4160b4
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 dbg.__wine_dbg_strdup
jmp 0x4158e2
movzx eax, bx
mov dword [esp], 0x419c20
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.19
jmp 0x4158e2
mov eax, ebx
mov dword [ebp - 0x3d4], edx
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x4157d3
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x41593c
mov eax, dword [0x41c184]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x415375
mov esi, 0x46a
mov ebx, esi
jmp 0x415375
lea eax, [edx + 1]
jmp 0x416015
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 0xc], str.services.exe_exited_with_code__ld_n
mov dword [esp + 8], global___func__.22
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x4159fe
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 - 0x3e8], eax
call eax
push eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3e0]
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 - 0x3f8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dbg.scmdatabase_lock_startup
jmp 0x416163
test byte [0x417070], 8
jne 0x4161ad
mov eax, dword [ebp - 0x3e0]
mov dword [eax + edi*4], esi
add edi, 1
add ebx, 1
cmp dword [ebp - 0x3dc], ebx
je 0x4161e2
mov eax, dword [ebp - 0x3e0]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x41614b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dbg.service_start
test eax, eax
je 0x4161a3
test byte [0x417070], 1
jne 0x4164d8
mov dword [esp], esi
call dbg.release_service
jmp 0x416160
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x416154
mov ecx, dword [ebp - 0x3f8]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x4164b7
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov esi, eax
mov dword [0x41c0b4], eax
test eax, eax
je 0x416586
mov dword [esp], 8
mov eax, dword [ebp - 0x3e4]
call eax
mov dword [ebp - 0x3d4], eax
test eax, eax
je 0x4164b7
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3e0]
lea edx, [pending.prev]
mov dword [eax], edi
mov edi, edx
mov dword [eax + 4], ecx
mov eax, ebx
mov ecx, 7
rep stosd dword es:[edi], eax
mov ecx, dword [0x417064]
mov edi, 0xffffd8f0
mov dword [ebp - 0x210], esi
mov eax, edi
mov dword [esp], dbg.delayed_autostart_callback
mov dword [pending.next], 1
mul ecx
mov dword [ebp - 0x20c], dbg.delayed_autostart_cancel_callback
sub edx, ecx
mov esi, eax
mov ecx, dword [ebp - 0x3d0]
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x344], esi
mov dword [ebp - 0x340], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x4165d4
lea edx, [ebp - 0x344]
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 - 0x3d4], eax
mov eax, dword [ebp - 0x3fc]
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], 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 - 0x3d8]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
mov eax, dword [0x41c180]
mov dword [ebp - 0x3dc], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
mov eax, dword [0x41c0b8]
push edx
push edx
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 ebx, dword [0x41c184]
mov edi, dword [ebp - 0x3d0]
push ecx
mov eax, dword [ebp - 0x3f4]
push ecx
lea esi, [ebx + 0x18]
mov dword [pending.next], edi
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 - 0x3d8], ecx
cmp ecx, eax
je 0x416463
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 0x416463
cmp edi, dword [ebp - 0x3d0]
je 0x41646d
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 - 0x3dc]
call eax
push eax
push eax
mov eax, dword [ebp - 0x3f4]
mov dword [esp], esi
call eax
push eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x3d8]
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 0x4163f7
mov eax, dword [ebp - 0x3e8]
mov dword [esp], esi
call eax
push eax
mov eax, dword [0x41c0b4]
test eax, eax
je 0x4164ad
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x41c0b4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call dbg.RPC_Stop
jmp 0x4159aa
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
mov eax, dword [ebp - 0x3d4]
call eax
jmp 0x4162e6
mov dword [ebp - 0x3d4], eax
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.16
mov ecx, dword [ebp - 0x3d4]
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], 0x417070
mov dword [esp], 0
call sym._wine_dbg_log.constprop.17
jmp 0x4161a3
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d4], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x3f4], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3e8], eax
jmp 0x4162f6
test byte [0x417070], 2
je 0x415d6b
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x415d6b
test byte [0x417070], 2
je 0x4164b7
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d4], eax
jmp 0x4164c2
test byte [0x417070], 2
jne 0x4165f8
mov eax, dword [ebp - 0x3d4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d4], eax
call eax
jmp 0x4164c2
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x4165dd
mov ebx, ecx
test dl, dl
je 0x416673
mov eax, dword [ebp - 0x3d4]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x419f34
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x417070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
mov eax, dword [ebp - 0x3d4]
mov edx, dword [eax + 0x64]
mov eax, ebx
mov ebx, edx
mov edx, eax
cmp word [ebx], 0
je 0x4166e6
test byte [0x417070], 8
jne 0x4166a9
mov eax, ebx
jmp 0x416698
add eax, 2
cmp word [eax], 0
jne 0x416695
sub eax, ebx
and eax, 0xfffffffe
lea ebx, [ebx + eax + 2]
jmp 0x416682
mov eax, ebx
mov dword [ebp - 0x3d4], edx
call sym._wine_dbgstr_wn.constprop.16
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
mov edx, dword [ebp - 0x3d4]
jmp 0x416691
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 0x416745
test byte [0x417070], 8
je 0x4157d9
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x4157d3
mov dword [esp], eax
call dbg.validate_service_config
test eax, eax
jne 0x416792
test byte [0x417070], 2
je 0x4157d3
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x4157d3
mov eax, dword [ebp - 0x3c8]
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 dbg.release_service
jmp 0x415739
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x40]
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [0x417070]
test al, 8
je 0x415cb1
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x44]
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [0x417070]
test al, 8
je 0x415cb1
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x50]
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [0x417070]
test al, 8
je 0x415cb1
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x54]
call sym._wine_dbgstr_wn.constprop.16
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [0x417070]
test al, 8
je 0x415cb1
mov eax, dword [ebp - 0x3d4]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x419f34
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x417070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [0x417070]
jmp 0x415cb1