Function at 0x408f90
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 [0x4110bc], 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 0x409023
test byte [0x40b070], 2
jne 0x409486
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 [0x4110b8], eax
sub esp, 0x10
mov dword [ebp - 0x3bc], eax
mov eax, dword [0x4110bc]
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 0x4090ca
test byte [0x40b070], 2
je 0x40900c
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__.14
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x40900c
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], 0x4110c0
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 0x409015
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 0x4092ef
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 0x409210
cmp dword [ebp - 0x3c8], 1
jne 0x409210
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 0x409210
mov dword [0x40b06c], 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 0x409291
cmp dword [ebp - 0x3c8], 1
jne 0x409291
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 0x409291
mov dword [0x40b068], 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 0x40998f
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 [0x411184], eax
test eax, eax
je 0x409d48
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 [0x411184]
sub esp, 0xc
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str..._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 0x409d33
lea eax, [pending.next]
mov esi, ebx
mov edi, dword [0x411184]
mov ecx, eax
mov dword [ebp - 0x3d0], eax
mov ebx, eax
shr ecx, 0x10
mov dword [ebp - 0x3e0], ecx
jmp 0x4093dc
test byte [0x40b070], 2
jne 0x4094bc
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 0x40962c
test eax, eax
jne 0x4093cc
lea eax, [ebp - 0x3c8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dbg.service_create
test eax, eax
jne 0x40962c
test byte [0x40b070], 8
jne 0x409559
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 0x4094ed
test byte [0x40b070], 2
jne 0x409ce3
mov eax, dword [ebp - 0x3c8]
mov dword [esp], eax
call dbg.free_service_entry
jmp 0x4093d9
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__.14
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x40900c
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x4093d9
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 0x4096a9
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 0x409466
cmp dword [ebp - 0x3e0], 0
je 0x409ccb
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
je 0x4095b2
mov eax, 0x40dc2d
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
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x409430
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x4095af
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 0x409c89
lea eax, [ebp - 0x222]
cmp edx, eax
ja 0x409c89
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x409bfc
ja 0x409bdd
cmp ax, 9
je 0x409c6b
cmp ax, 0xa
jne 0x409c0b
mov word [edx], 0x6e5c
mov eax, esi
add edx, 2
jmp 0x4095dc
call dbg.RPC_Init
mov dword [ebp - 0x3ec], eax
test eax, eax
je 0x4099ac
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d4], eax
mov ebx, dword [0x411184]
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 [0x4110c4]
test eax, eax
je 0x409691
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x40b070], 8
jne 0x409d5c
mov ebx, dword [ebp - 0x3ec]
jmp 0x409015
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 0x409538
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 0x409538
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 0x409538
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 0x409538
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 0x409538
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 0x409538
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 0x409538
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 0x409538
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 0x409538
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x3dc]
mov dword [esp + 4], 0x40e620
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call dbg.load_reg_dword
mov edx, eax
test eax, eax
jne 0x409538
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 0x409538
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 0x40990e
cmp dword [ebp - 0x344], 1
jne 0x40990e
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 0x409942
cmp dword [ebp - 0x344], 1
jne 0x409942
mov eax, dword [ebp - 0x3d4]
mov dword [eax + 0x7c], 1
movzx eax, byte [global___dbch]
test al, 8
jne 0x40a464
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 0x40a2cb
test dl, dl
jne 0x409b96
mov edx, ebx
jmp 0x40997e
add edx, 2
cmp word [edx], 0
jne 0x40997b
sub edx, ebx
and edx, 0xfffffffe
lea ebx, [ebx + edx + 2]
jmp 0x409960
cmp dword [ebp - 0x3c8], 4
jne 0x4092df
mov eax, dword [ebp - 0x344]
mov dword [0x40b064], eax
jmp 0x4092df
mov eax, dword [0x411184]
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 0x40a1bd
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 0x40a1e3
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 0x409d8f
mov eax, dword [ebp - 0x3d4]
cmp dword [eax + 0x38], 2
jbe 0x409b22
cmp esi, 0xffffffff
je 0x409b83
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 0x409aa8
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 0x409b83
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 0x409aa5
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 0x409aa5
mov eax, dword [ebp - 0x3dc]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x3f0]
cmp edi, eax
jb 0x409b63
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 0x409d8f
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 0x409a57
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [global___dbch]
mov ecx, dword [ebp - 0x3dc]
jmp 0x409977
cmp ax, 0x22
je 0x409c7a
cmp ax, 0x5c
jne 0x409c0b
mov word [edx], 0x5c5c
mov eax, esi
add edx, 2
jmp 0x4095dc
mov word [edx], 0x725c
mov eax, esi
add edx, 2
jmp 0x4095dc
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x409d27
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 0x4095dc
mov word [edx], 0x745c
mov eax, esi
add edx, 2
jmp 0x4095dc
mov word [edx], 0x225c
mov eax, esi
add edx, 2
jmp 0x4095dc
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 0x409d54
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 0x409582
movzx eax, bx
mov dword [esp], 0x40dc20
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.19
jmp 0x409582
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x409473
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x4095dc
mov eax, dword [0x411184]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x409015
mov esi, 0x46a
mov ebx, esi
jmp 0x409015
lea eax, [edx + 1]
jmp 0x409cb5
mov eax, dword [ebp - 0x3ec]
mov dword [esp + 0xc], str.services.exe_exited_with_code__ld_n
mov dword [esp + 8], global___func__.14
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x40969e
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 0x409e03
test byte [0x40b070], 8
jne 0x409e4d
mov eax, dword [ebp - 0x3e0]
mov dword [eax + edi*4], esi
add edi, 1
add ebx, 1
cmp dword [ebp - 0x3dc], ebx
je 0x409e82
mov eax, dword [ebp - 0x3e0]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x409deb
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dbg.service_start
test eax, eax
je 0x409e43
test byte [0x40b070], 1
jne 0x40a178
mov dword [esp], esi
call dbg.release_service
jmp 0x409e00
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x409df4
mov ecx, dword [ebp - 0x3f8]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x40a157
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov esi, eax
mov dword [0x4110b4], eax
test eax, eax
je 0x40a226
mov dword [esp], 8
mov eax, dword [ebp - 0x3e4]
call eax
mov dword [ebp - 0x3d4], eax
test eax, eax
je 0x40a157
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 [0x40b064]
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 0x40a274
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 [0x411180]
mov dword [ebp - 0x3dc], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
mov eax, dword [0x4110b8]
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 [0x411184]
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 0x40a103
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 0x40a103
cmp edi, dword [ebp - 0x3d0]
je 0x40a10d
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 0x40a097
mov eax, dword [ebp - 0x3e8]
mov dword [esp], esi
call eax
push eax
mov eax, dword [0x4110b4]
test eax, eax
je 0x40a14d
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x4110b4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call dbg.RPC_Stop
jmp 0x40964a
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 0x409f86
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], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.17
jmp 0x409e43
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 0x409f96
test byte [0x40b070], 2
je 0x409a0b
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
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x409a0b
test byte [0x40b070], 2
je 0x40a157
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
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 0x40a162
test byte [0x40b070], 2
jne 0x40a298
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 0x40a162
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
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x40a27d
mov ebx, ecx
test dl, dl
je 0x40a313
mov eax, dword [ebp - 0x3d4]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x40df2c
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
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 0x40a386
test byte [0x40b070], 8
jne 0x40a349
mov eax, ebx
jmp 0x40a338
add eax, 2
cmp word [eax], 0
jne 0x40a335
sub eax, ebx
and eax, 0xfffffffe
lea ebx, [ebx + eax + 2]
jmp 0x40a322
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
mov edx, dword [ebp - 0x3d4]
jmp 0x40a331
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 0x40a3e5
test byte [0x40b070], 8
je 0x409479
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
jmp 0x409473
mov dword [esp], eax
call dbg.validate_service_config
test eax, eax
jne 0x40a432
test byte [0x40b070], 2
je 0x409473
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.17
jmp 0x409473
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 0x4093d9
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [global___dbch]
test al, 8
je 0x409951
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [global___dbch]
test al, 8
je 0x409951
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [global___dbch]
test al, 8
je 0x409951
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [global___dbch]
test al, 8
je 0x409951
mov eax, dword [ebp - 0x3d4]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x40df2c
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
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.17
movzx eax, byte [global___dbch]
jmp 0x409951