Function at 0x409fc0
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, 0x42c
call sym.___main
lea eax, [ebp - 0x3c8]
mov dword [esp + 4], 0
movd xmm2, eax
mov dword [esp], 0
punpckldq xmm2, xmm2
movq qword [ebp - 0x3e8], xmm2
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 [0x4150dc], 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 0x40a069
test byte [0x40c070], 2
jne 0x40a4e8
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]
mov edx, dword [0x4150dc]
movd xmm4, eax
sub esp, 0x10
mov dword [0x4150d8], eax
lea eax, [ebp - 0x3d0]
movd xmm0, edx
mov dword [esp + 0xc], 8
punpckldq xmm0, xmm4
mov dword [esp + 8], eax
mov dword [esp + 4], 7
mov dword [esp], edx
movq qword [ebp - 0x3d0], xmm0
call ebx
sub esp, 0x10
test eax, eax
jne 0x40a119
test byte [0x40c070], 2
je 0x40a052
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a052
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 - 0x3f8], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x4150e0
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 0x40a05b
lea eax, [ebp - 0x3dc]
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 0x40a339
lea eax, [ebp - 0x3d4]
mov dword [esp + 8], 0
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x3e0], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3d8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3d4], pe_nt_image_headers32
mov dword [esp + 4], str.ServicesPipeTimeout
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x40a25a
cmp dword [ebp - 0x3d8], 1
jne 0x40a25a
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x40a25a
mov dword [0x40c06c], eax
lea eax, [ebp - 0x3d4]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3d4], pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3d8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp + 4], str.WaitToKillServiceTimeout
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x40a2db
cmp dword [ebp - 0x3d8], 1
jne 0x40a2db
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x40a2db
mov dword [0x40c068], eax
lea eax, [ebp - 0x3d4]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x350]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3d8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3d4], 4
mov dword [esp + 4], str.AutoStartDelay
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x40a964
mov eax, dword [ebp - 0x3dc]
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 - 0x404], eax
call eax
mov dword [0x415020], eax
test eax, eax
je 0x40b544
lea ecx, [eax + 0x10]
mov dword [eax + 4], 0
movd xmm1, ecx
lea ecx, [eax + 8]
add eax, 0x18
movd xmm0, ecx
punpckldq xmm1, xmm1
punpckldq xmm0, xmm0
punpcklqdq xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
mov dword [esp + 8], 0x10000000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionEx]
mov eax, dword [0x415020]
sub esp, 0xc
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str._home_builder_build_wine_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 0x40acc9
lea eax, [ebp - 0x220]
mov esi, dword [0x415020]
mov dword [ebp - 0x3e0], eax
shr eax, 0x10
mov dword [ebp - 0x3f0], eax
jmp 0x40a42c
test byte [0x40c070], 2
jne 0x40a51e
add ebx, 1
mov eax, dword [ebp - 0x3e0]
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 0x40a65f
test eax, eax
jne 0x40a41c
lea eax, [ebp - 0x3d8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call sym._service_create
test eax, eax
jne 0x40a65f
test byte [0x40c070], 8
jne 0x40a5af
lea eax, [ebp - 0x3d4]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3e0]
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 - 0x3d8]
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x40a54f
test byte [0x40c070], 2
jne 0x40acfa
mov dword [esp], edi
call sym._free_service_entry
jmp 0x40a429
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a052
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a429
mov ecx, dword [ebp - 0x3d4]
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 - 0x350], 0
mov dword [ebp - 0x3ec], ecx
call sym._load_reg_string
mov edx, eax
test eax, eax
je 0x40a6dc
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x3ec], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
mov edx, dword [ebp - 0x3ec]
jmp 0x40a4ce
cmp dword [ebp - 0x3f0], 0
je 0x40acde
mov eax, dword [ebp - 0x3e0]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x40a981
mov edx, dword [ebp - 0x3e0]
jmp 0x40a5e8
add eax, 1
cmp word [edx + eax*2], 0
jne 0x40a5e5
mov word [ebp - 0x350], 0x224c
mov ecx, dword [ebp - 0x3e0]
lea edx, [ebp - 0x34e]
mov dword [ebp - 0x3ec], esi
mov dword [ebp - 0x3f4], ebx
lea edi, [eax - 1]
test eax, eax
jle 0x40ac90
lea eax, [ebp - 0x22e]
cmp edx, eax
ja 0x40ac90
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x40ac03
ja 0x40abe4
cmp ax, 9
je 0x40ac12
cmp ax, 0xa
jne 0x40ac2e
mov word [edx], 0x6e5c
mov eax, edi
add edx, 2
jmp 0x40a610
call sym._RPC_Init
mov dword [ebp - 0x408], eax
test eax, eax
je 0x40a9b3
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3e0], eax
mov ebx, dword [0x415020]
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 [0x4150e4]
test eax, eax
je 0x40a6c4
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x40c070], 8
jne 0x40b123
mov ebx, dword [ebp - 0x408]
jmp 0x40a05b
lea eax, [edi + 0x44]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 4], str.Group
mov dword [esp], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x50]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 4], str.ObjectName
mov dword [esp], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x54]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 4], str.Description
mov dword [esp], eax
call sym._load_reg_string
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x60]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 4], str.DependOnService
mov dword [esp], eax
call sym._load_reg_multisz
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 4], str.DependOnGroup
mov dword [esp], eax
call sym._load_reg_multisz
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x34]
mov dword [esp + 4], str.Type
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x38]
mov dword [esp + 4], str.Start
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x3c]
mov dword [esp + 4], str.ErrorControl
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x48]
mov dword [esp + 4], 0x40f6c0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x40a58e
lea eax, [edi + 0x58]
mov dword [esp + 4], str.PreshutdownTimeout
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3ec]
mov dword [esp], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x40a58e
mov eax, dword [ebp - 0x3ec]
lea edx, [ebp - 0x350]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x3f4], edx
call sym._load_reg_dword
mov edx, dword [ebp - 0x3f4]
test eax, eax
jne 0x40a8f9
cmp dword [ebp - 0x350], 1
jne 0x40a8f9
mov dword [edi + 0x78], 1
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call sym._load_reg_dword
test eax, eax
jne 0x40a927
cmp dword [ebp - 0x350], 1
jne 0x40a927
mov dword [edi + 0x7c], 1
movzx eax, byte [0x40c070]
test al, 8
jne 0x40b400
mov ecx, dword [edi + 0x60]
xchg ebx, ecx
mov edx, eax
and edx, 8
cmp word [ebx], 0
je 0x40b287
test dl, dl
jne 0x40ab9d
mov edx, ebx
jmp 0x40a959
add edx, 2
cmp word [edx], 0
jne 0x40a956
lea ebx, [edx + 2]
jmp 0x40a93b
cmp dword [ebp - 0x3d8], 4
jne 0x40a329
mov eax, dword [ebp - 0x350]
mov dword [0x40c064], eax
jmp 0x40a329
mov eax, 0x40ec8d
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a48c
mov eax, dword [0x415020]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x404]
call eax
mov dword [ebp - 0x3f4], eax
test eax, eax
je 0x40b550
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 - 0x414], eax
sub esp, 0x10
add eax, 1
je 0x40b1f6
mov edi, dword [ebp - 0x410]
lea eax, [edi + 0x18]
mov dword [ebp - 0x418], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x40c], eax
call eax
mov esi, dword [ebp - 0x414]
mov dword [ebp - 0x3f0], 0
push eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x400], 0x20
mov dword [ebp - 0x3ec], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x3fc], eax
mov ecx, dword [ebp - 0x3fc]
cmp dword [ebp - 0x3ec], ecx
je 0x40ad4e
mov eax, dword [ebp - 0x3ec]
cmp dword [eax + 0x38], 2
jbe 0x40ab29
cmp esi, 0xffffffff
je 0x40ab8a
lea edi, [ebp - 0x34c]
mov ecx, 6
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x350]
mov dword [ebp - 0x350], 0x1c
jmp 0x40aaaf
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 0x40ab8a
mov eax, dword [ebp - 0x3e0]
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 0x40aaac
mov eax, dword [ebp - 0x3ec]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x40aaac
mov eax, dword [ebp - 0x3f0]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x400]
cmp edi, eax
jb 0x40ab6a
mov ebx, eax
add ebx, eax
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3f4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x40ad4e
mov dword [ebp - 0x400], ebx
mov dword [ebp - 0x3f4], eax
mov eax, dword [ebp - 0x3ec]
lock add dword [eax + 0xc], 1
mov edx, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x3f4]
mov dword [ebp - 0x3f0], edi
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x3ec]
mov eax, dword [eax]
mov dword [ebp - 0x3ec], eax
jmp 0x40aa5e
mov eax, ebx
mov dword [ebp - 0x3ec], 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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40c070]
mov ecx, dword [ebp - 0x3ec]
jmp 0x40a952
cmp ax, 0x22
je 0x40ac81
cmp ax, 0x5c
jne 0x40ac21
mov word [edx], 0x5c5c
mov eax, edi
add edx, 2
jmp 0x40a610
mov word [edx], 0x725c
mov eax, edi
add edx, 2
jmp 0x40a610
mov word [edx], 0x745c
mov eax, edi
add edx, 2
jmp 0x40a610
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x40ad42
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 0x40a610
mov word [edx], 0x225c
mov eax, edi
add edx, 2
jmp 0x40a610
mov byte [edx], 0x22
mov esi, dword [ebp - 0x3ec]
lea eax, [edx + 1]
mov ebx, dword [ebp - 0x3f4]
test edi, edi
jle 0x40acb3
mov word [edx + 1], 0x2e2e
lea eax, [edx + 4]
mov byte [edx + 3], 0x2e
lea edx, [ebp - 0x350]
mov byte [eax], 0
mov dword [esp], edx
call sym.___wine_dbg_strdup
jmp 0x40a986
mov eax, dword [0x415020]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a05b
movzx eax, word [ebp - 0x3e0]
mov dword [esp], 0x40ec80
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x40a986
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3ec], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x3ec]
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a4db
mov byte [edx], al
add edx, 1
mov eax, edi
jmp 0x40a610
mov eax, dword [ebp - 0x418]
xor edi, edi
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3ec], eax
call eax
push eax
mov eax, dword [ebp - 0x3f0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3f4]
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 - 0x410]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._scmdatabase_lock_startup
jmp 0x40adc2
test byte [0x40c070], 8
jne 0x40ae0c
mov eax, dword [ebp - 0x3f4]
mov dword [eax + edi*4], esi
add edi, 1
add ebx, 1
cmp dword [ebp - 0x3f0], ebx
je 0x40ae41
mov eax, dword [ebp - 0x3f4]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x40adaa
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._service_start
test eax, eax
je 0x40ae02
test byte [0x40c070], 1
jne 0x40b156
mov dword [esp], esi
call sym._release_service
jmp 0x40adbf
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40adb3
mov ecx, dword [ebp - 0x410]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x40b1d5
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x4150d4], eax
test eax, eax
je 0x40b19b
mov dword [ebp - 0x3f0], eax
mov eax, dword [ebp - 0x404]
mov dword [esp], 8
call eax
mov edx, dword [ebp - 0x3f0]
test eax, eax
mov esi, eax
je 0x40b1d5
mov dword [eax], edi
mov eax, dword [ebp - 0x3f4]
mov ecx, 7
lea edi, [ebp - 0x21c]
mov dword [esi + 4], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x218], edx
mov eax, 0xffffd8f0
mul dword [0x40c064]
sub edx, dword [0x40c064]
mov dword [esp + 4], esi
movd xmm7, edx
mov dword [esp], sym._delayed_autostart_callback_12
mov dword [ebp - 0x220], 1
movd xmm0, eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x214], sym._delayed_autostart_cancel_callback_8
punpckldq xmm0, xmm7
mov dword [esp + 8], eax
movq qword [ebp - 0x350], xmm0
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x40b239
lea edx, [ebp - 0x350]
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 - 0x414]
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 - 0x3f8]
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 - 0x3f0], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
mov eax, dword [0x4150d8]
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
movq xmm5, qword [ebp - 0x3e8]
mov eax, dword [ebp - 0x40c]
push ebx
push ebx
mov ebx, dword [0x415020]
movq qword [ebp - 0x3c8], xmm5
lea esi, [ebx + 0x18]
mov dword [esp], esi
call eax
lea eax, [ebx + 8]
movd xmm0, eax
push edi
mov ecx, eax
mov dword [ebp - 0x3e8], eax
mov eax, dword [ebx + 8]
punpckldq xmm0, xmm0
cmp ecx, eax
je 0x40b0cf
mov edx, dword [ebp - 0x3c4]
lea ecx, [ebp - 0x3c8]
mov dword [edx], eax
mov edx, dword [ebp - 0x3c4]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x3c4], eax
mov dword [eax], ecx
movq qword [ebx + 8], xmm0
jmp 0x40b0cf
lea eax, [ebp - 0x3c8]
cmp edi, eax
je 0x40b0d9
lock add dword [edi + 0xc], 1
mov dword [esp], edi
call sym._process_terminate
mov eax, dword [ebp - 0x3ec]
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 - 0x3f0]
call eax
push eax
push eax
mov eax, dword [ebp - 0x40c]
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 - 0x3e8]
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 - 0x3c8]
test edi, edi
jne 0x40b061
mov eax, dword [ebp - 0x3ec]
mov dword [esp], esi
call eax
push eax
mov eax, dword [0x4150d4]
test eax, eax
je 0x40b119
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x4150d4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call sym._RPC_Stop
jmp 0x40a67d
mov eax, dword [ebp - 0x408]
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a6d1
mov dword [ebp - 0x3fc], eax
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x3fc]
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], 0x40c070
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40ae02
test byte [0x40c070], 2
je 0x40b1d5
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], 0x40c070
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 - 0x3f4]
mov dword [esp], eax
mov eax, dword [ebp - 0x3e0]
call eax
jmp 0x40af43
test byte [0x40c070], 2
je 0x40aa12
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40aa12
test byte [0x40c070], 2
jne 0x40b254
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x3e0], eax
call eax
jmp 0x40b1e0
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40b242
mov ebx, ecx
test dl, dl
je 0x40b2c9
mov eax, dword [edi + 0x64]
mov edx, str._none_
cmp word [eax], 0
mov eax, 0x40efa8
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x40c070
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 0x40b32c
test byte [0x40c070], 8
jne 0x40b2ef
mov eax, ebx
jmp 0x40b2e4
add eax, 2
cmp word [eax], 0
jne 0x40b2e1
lea ebx, [eax + 2]
jmp 0x40b2ce
mov eax, ebx
mov dword [ebp - 0x3ec], 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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x3ec]
jmp 0x40b2dd
mov eax, dword [ebp - 0x3d4]
mov ebx, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
cmp dword [edi + 0x34], 0
jne 0x40b389
test byte [0x40c070], 8
je 0x40a4db
mov eax, dword [ebp - 0x3e0]
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a4db
mov dword [esp], edi
call sym._validate_service_config
test eax, eax
jne 0x40b3da
test byte [0x40c070], 2
je 0x40a4db
mov eax, dword [ebp - 0x3e0]
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], 0x40c070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a4db
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 sym._release_service
jmp 0x40a429
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40c070]
test al, 8
je 0x40a936
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40c070]
test al, 8
je 0x40a936
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40c070]
test al, 8
je 0x40a936
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], 0x40c070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40c070]
test al, 8
je 0x40a936
mov eax, dword [edi + 0x60]
mov edx, str._none_
cmp word [eax], 0
mov eax, 0x40efa8
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x40c070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40c070]
jmp 0x40a936
mov esi, 0x46a
mov ebx, esi
jmp 0x40a05b
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3e0], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x40c], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3ec], eax
jmp 0x40af53