Function at 0x4170e0
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 sym.___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 [0x4190f4], 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 0x417173
test byte [0x419030], 2
jne 0x417549
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 [0x4190f0], eax
sub esp, 0x10
mov dword [ebp - 0x3c4], eax
mov eax, dword [0x4190f4]
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 0x41721a
test byte [0x419030], 2
je 0x41715c
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41715c
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 - 0x3ec], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x419244
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 0x417165
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 0x41743f
lea eax, [ebp - 0x220]
lea edi, [ebp - 0x3cc]
mov dword [ebp - 0x3cc], pe_nt_image_headers32
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 [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 - 0x3e0], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x417360
cmp dword [ebp - 0x3d0], 1
jne 0x417360
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 0x417360
mov dword [0x41924c], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 0x14], edi
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 + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], str.WaitToKillServiceTimeout
call eax
sub esp, 0x18
test eax, eax
jne 0x4173e1
cmp dword [ebp - 0x3d0], 1
jne 0x4173e1
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 0x4173e1
mov dword [0x419248], eax
lea eax, [ebp - 0x34c]
mov dword [esp + 0x14], edi
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], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoStartDelay
call eax
sub esp, 0x18
test eax, eax
je 0x417ab5
mov eax, dword [ebp - 0x3d4]
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 - 0x3f8], eax
call eax
mov dword [0x419060], eax
test eax, eax
je 0x418635
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 [0x419060]
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 0x417dd3
lea eax, [ebp - 0x220]
mov edi, dword [0x419060]
mov esi, ebx
mov ecx, eax
mov dword [ebp - 0x3dc], eax
mov ebx, eax
shr ecx, 0x10
mov dword [ebp - 0x3e8], 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 0x417767
test eax, eax
je 0x4175b1
test byte [0x419030], 2
jne 0x41757f
inc esi
jmp 0x417510
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41715c
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x417510
lea eax, [ebp - 0x3d0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._service_create
test eax, eax
jne 0x417767
test byte [0x419030], 8
jne 0x41762b
lea eax, [ebp - 0x3cc]
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 0x4176fb
test byte [0x419030], 2
jne 0x417e00
mov eax, dword [ebp - 0x3d0]
mov dword [esp], eax
inc esi
call sym._free_service_entry
jmp 0x417510
cmp dword [ebp - 0x3e8], 0
je 0x417de8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
je 0x417682
mov eax, 0x41a579
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4175d4
inc eax
cmp word [ebx + eax*2], 0
jne 0x417681
mov dword [ebp - 0x3e0], edi
lea edx, [ebp - 0x34a]
mov ecx, ebx
mov word [ebp - 0x34c], 0x224c
mov dword [ebp - 0x3e4], esi
mov dword [ebp - 0x3f0], ebx
lea esi, [eax - 1]
test eax, eax
jle 0x417d91
lea eax, [ebp - 0x22a]
cmp edx, eax
ja 0x417d91
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x417d04
ja 0x417ce5
cmp ax, 9
je 0x417d73
cmp ax, 0xa
jne 0x417d20
mov word [edx], 0x6e5c
mov eax, esi
add edx, 2
jmp 0x4176ac
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 0x3cc]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [ebp - 0x3e0], eax
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x3e4], ecx
call sym._load_reg_string
mov edx, eax
test eax, eax
je 0x4177d8
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 0x41760a
call sym._RPC_Init
mov dword [ebp - 0x400], eax
test eax, eax
je 0x417ad2
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [0x419060]
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 [0x4190e0]
test eax, eax
je 0x4177c0
mov dword [esp], eax
call sym._DestroyEnvironmentBlock_4
push ecx
test byte [0x419030], 8
jne 0x41823c
mov ebx, dword [ebp - 0x400]
jmp 0x417165
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
mov dword [esp + 4], 0x41ae8c
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x417746
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e4]
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 0x417746
mov ecx, dword [ebp - 0x3e4]
lea edx, [ebp - 0x34c]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [ebp - 0x3f0], edx
call sym._load_reg_dword
mov edx, dword [ebp - 0x3f0]
test eax, eax
jne 0x417a3d
cmp dword [ebp - 0x34c], 1
jne 0x417a3d
mov eax, dword [ebp - 0x3e0]
mov dword [eax + 0x78], 1
mov eax, dword [ebp - 0x3e4]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call sym._load_reg_dword
test eax, eax
jne 0x417a71
cmp dword [ebp - 0x34c], 1
jne 0x417a71
mov eax, dword [ebp - 0x3e0]
mov dword [eax + 0x7c], 1
movzx edx, byte [0x419030]
test dl, 8
jne 0x4184ae
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [eax + 0x60]
xchg ebx, ecx
mov eax, edx
and eax, 8
cmp word [ebx], 0
je 0x41831e
test al, al
jne 0x417c9e
mov eax, ebx
jmp 0x417aaa
add eax, 2
cmp word [eax], 0
jne 0x417aa7
lea ebx, [eax + 2]
jmp 0x417a8c
cmp dword [ebp - 0x3d0], 4
jne 0x41742f
mov eax, dword [ebp - 0x34c]
mov dword [0x419064], eax
jmp 0x41742f
mov eax, dword [0x419060]
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 0x418614
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
inc eax
je 0x4182ca
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
lea eax, [edi + 0x10]
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3f4], 0x20
mov dword [ebp - 0x3f0], eax
push edx
mov esi, dword [edi + 0x10]
cmp esi, dword [ebp - 0x3f0]
je 0x417e63
cmp dword [esi + 0x38], 2
jbe 0x417c3d
mov edx, dword [ebp - 0x3fc]
cmp edx, 0xffffffff
je 0x417c97
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
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 0x417e44
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
jne 0x417c17
inc ebx
jmp 0x417bbc
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 0x417c14
mov esi, dword [ebp - 0x3e8]
mov eax, dword [ebp - 0x3e0]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x3f4]
cmp edi, eax
jb 0x417c7e
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 0x417e63
mov dword [ebp - 0x3f4], ebx
mov dword [ebp - 0x3e4], eax
lock inc dword [esi + 0xc]
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 0x417b6e
mov eax, ebx
mov dword [ebp - 0x3e4], 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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x419030]
mov ecx, dword [ebp - 0x3e4]
jmp 0x417aa3
cmp ax, 0x22
je 0x417d82
cmp ax, 0x5c
jne 0x417d13
mov word [edx], 0x5c5c
mov eax, esi
add edx, 2
jmp 0x4176ac
mov word [edx], 0x725c
mov eax, esi
add edx, 2
jmp 0x4176ac
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x417e51
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x41c46c]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + 0x41c46c]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x41c46c]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + 0x41c46c]
mov byte [edx - 1], al
mov eax, esi
mov byte [edx - 2], bl
jmp 0x4176ac
mov word [edx], 0x745c
mov eax, esi
add edx, 2
jmp 0x4176ac
mov word [edx], 0x225c
mov eax, esi
add edx, 2
jmp 0x4176ac
mov eax, esi
mov byte [edx], 0x22
mov edi, dword [ebp - 0x3e0]
mov esi, dword [ebp - 0x3e4]
mov ebx, dword [ebp - 0x3f0]
test eax, eax
jle 0x417e5b
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 sym.___wine_dbg_strdup
jmp 0x417654
mov eax, dword [0x419060]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x417165
movzx eax, bx
mov dword [esp], 0x41a56c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x417654
mov eax, ebx
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x417617
mov esi, dword [ebp - 0x3e8]
mov esi, dword [esi]
jmp 0x417b6e
mov byte [edx], al
inc edx
mov eax, esi
jmp 0x4176ac
lea eax, [edx + 1]
jmp 0x417dbd
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], sym._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
cmp dword [ebp - 0x3e0], ebx
je 0x417f54
mov eax, dword [ebp - 0x3e4]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
je 0x417eee
test byte [0x419030], 8
jne 0x417f22
mov eax, dword [ebp - 0x3e4]
inc ebx
mov dword [eax + edi*4], esi
inc edi
jmp 0x417ebd
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._service_start
test eax, eax
je 0x417f17
test byte [0x419030], 1
jne 0x41826f
mov dword [esp], esi
inc ebx
call sym._release_service
jmp 0x417ebd
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x417ee1
mov ecx, dword [ebp - 0x408]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x4182b4
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [ebp - 0x3e0], eax
mov dword [0x419078], eax
test eax, eax
je 0x41865a
mov dword [esp], 8
mov eax, dword [ebp - 0x3f8]
call eax
mov esi, eax
test eax, eax
je 0x4182b4
mov dword [eax], edi
mov eax, dword [ebp - 0x3e4]
lea edx, [ebp - 0x21c]
mov ecx, 7
mov edi, edx
mov dword [esi + 4], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x3e0]
mov ecx, 0xffffd8f0
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x214], sym._delayed_autostart_cancel_callback_8
mov dword [ebp - 0x218], eax
mov eax, ecx
mul dword [0x419064]
sub edx, dword [0x419064]
mov dword [esp + 4], esi
mov dword [ebp - 0x348], edx
mov ecx, eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp], sym._delayed_autostart_callback_12
mov dword [ebp - 0x34c], ecx
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x418641
lea edx, [ebp - 0x34c]
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 - 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], 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 - 0x3ec]
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 [0x4190e4]
push ecx
mov dword [ebp - 0x3e4], esi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call esi
push eax
push eax
mov eax, dword [0x4190f0]
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 [0x419060]
mov esi, dword [ebp - 0x3dc]
push eax
mov ecx, dword [ebp - 0x404]
push eax
lea eax, [ebx + 0x18]
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x220], esi
mov dword [esp], eax
mov dword [ebp - 0x21c], esi
call ecx
lea ecx, [ebx + 8]
push eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3e0], ecx
cmp ecx, eax
je 0x41830d
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x3f0], edi
mov dword [edx], eax
mov edx, dword [ebp - 0x21c]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x21c], eax
mov dword [eax], esi
mov esi, dword [ebp - 0x3ec]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jmp 0x4181dc
cmp edi, dword [ebp - 0x3dc]
je 0x4181e6
lock inc dword [edi + 0xc]
mov dword [esp], edi
call sym._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 - 0x3e4]
call eax
push eax
push eax
mov eax, dword [ebp - 0x404]
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 - 0x3e0]
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 - 0x220]
test edi, edi
jne 0x418171
mov eax, dword [ebp - 0x3ec]
mov edi, dword [ebp - 0x3f0]
mov dword [esp], eax
mov eax, dword [ebp - 0x3e8]
call eax
push eax
mov eax, dword [0x419078]
test eax, eax
je 0x418232
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x419078]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call sym._RPC_Stop
jmp 0x417780
mov eax, dword [ebp - 0x400]
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4177cd
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], 0x419030
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x417f17
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x3e4]
mov dword [esp], eax
call edi
jmp 0x41804f
test byte [0x419030], 2
je 0x417b2e
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x417b2e
mov dword [ebp - 0x3f0], edi
mov esi, dword [ebp - 0x3ec]
jmp 0x4181dc
mov ebx, ecx
test al, al
je 0x418366
mov eax, dword [ebp - 0x3e0]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x41a884
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x419030
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x3e0]
mov edx, dword [eax + 0x64]
xchg ebx, edx
cmp word [ebx], 0
je 0x4183cf
test byte [0x419030], 8
jne 0x418392
mov eax, ebx
jmp 0x418387
add eax, 2
cmp word [eax], 0
jne 0x418384
lea ebx, [eax + 2]
jmp 0x418371
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x3e0]
jmp 0x418380
mov eax, dword [ebp - 0x3cc]
mov ebx, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
mov eax, dword [ebp - 0x3d0]
cmp dword [eax + 0x34], 0
jne 0x41842e
test byte [0x419030], 8
je 0x41761d
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x417617
mov dword [esp], eax
call sym._validate_service_config
test eax, eax
jne 0x41847b
test byte [0x419030], 2
je 0x417617
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x417617
mov eax, dword [ebp - 0x3d0]
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 - 0x3d0]
mov dword [esp], eax
call sym._release_service
jmp 0x417510
mov eax, dword [ebp - 0x3e0]
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x419030]
test dl, 8
je 0x417a81
mov eax, dword [ebp - 0x3e0]
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x419030]
test dl, 8
je 0x417a81
mov eax, dword [ebp - 0x3e0]
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x419030]
test dl, 8
je 0x417a81
mov eax, dword [ebp - 0x3e0]
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], 0x419030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x419030]
test dl, 8
je 0x417a81
mov eax, dword [ebp - 0x3e0]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x41a884
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x419030
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x419030]
jmp 0x417a81
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x404], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3e8], eax
jmp 0x41805e
mov esi, 0x46a
mov ebx, esi
jmp 0x417165
test byte [0x419030], 2
jne 0x4186a3
mov dword [esp], esi
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
jmp 0x4182ba
test byte [0x419030], 2
je 0x4182b4
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x4182ba
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], 0x419030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41864a