Function at 0x409500
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, 0x2ec
call sym.___main
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateJobObjectW]
lea edx, [ebp - 0x288]
mov dword [ebp - 0x278], 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 0x409593
test byte [0x40b070], 2
jne 0x4099d5
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 - 0x298]
mov dword [0x4110b8], eax
sub esp, 0x10
mov dword [ebp - 0x294], eax
mov eax, dword [0x4110bc]
mov dword [esp + 0xc], 8
mov dword [ebp - 0x298], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 7
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jne 0x40963a
test byte [0x40b070], 2
je 0x40957c
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40957c
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 edi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x10
mov dword [ebp - 0x2a8], 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], str.SYSTEMCurrentControlSetControlServiceCurrent
mov dword [esp], 0x80000002
call edi
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x409585
lea eax, [ebp - 0x2a4]
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 0x409853
lea eax, [ebp - 0x29c]
lea esi, [ebp - 0x218]
mov dword [ebp - 0x29c], pe_nt_image_headers32
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2a0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2a4]
mov dword [esp + 0x10], esi
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 - 0x2ac], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x409774
cmp dword [ebp - 0x2a0], 1
jne 0x409774
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x290], eax
test eax, eax
je 0x409774
mov dword [0x40b06c], eax
lea eax, [ebp - 0x29c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2a0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x29c], pe_nt_image_headers32
mov dword [esp], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp + 8], 0
mov dword [esp + 4], str.WaitToKillServiceTimeout
call eax
sub esp, 0x18
test eax, eax
jne 0x4097ef
cmp dword [ebp - 0x2a0], 1
jne 0x4097ef
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x290], eax
test eax, eax
je 0x4097ef
mov dword [0x40b068], eax
lea eax, [ebp - 0x29c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x290]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2a0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x29c], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp + 4], str.AutoStartDelay
call eax
sub esp, 0x18
test eax, eax
je 0x409e36
mov eax, dword [ebp - 0x2a4]
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 - 0x2b4], eax
call eax
mov dword [0x411184], eax
test eax, eax
je 0x40a5cc
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._home_xuser_wine_custom_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 edi
sub esp, 0x24
mov esi, eax
test eax, eax
jne 0x409fbc
mov edi, dword [0x411184]
lea esi, [ebp - 0x218]
jmp 0x40992b
test byte [0x40b070], 2
jne 0x409a0b
add ebx, 1
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
cmp eax, 0x103
je 0x409adc
test eax, eax
jne 0x40991b
lea eax, [ebp - 0x2a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._service_create
test eax, eax
jne 0x409adc
test byte [0x40b070], 8
jne 0x409aa8
lea eax, [ebp - 0x29c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
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 0x409a3c
test byte [0x40b070], 2
jne 0x409fd1
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call sym._free_service_entry
jmp 0x409928
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40957c
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x409928
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x29c]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [ebp - 0x2ac], eax
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x2b0], ecx
call sym._load_reg_string
mov edx, eax
test eax, eax
je 0x409b59
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2ac], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2ac]
push eax
jmp 0x4099b5
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Loading_service__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40997f
call sym._RPC_Init
mov dword [ebp - 0x2c4], eax
test eax, eax
je 0x409e53
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b0], 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 - 0x2b0]
push edi
mov dword [esp], ebx
call eax
mov eax, dword [0x4110c4]
test eax, eax
je 0x409b41
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x40b070], 8
jne 0x40a015
mov ebx, dword [ebp - 0x2c4]
jmp 0x409585
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
mov dword [esp + 4], 0x40e680
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x409a87
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
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 0x409a87
mov ecx, dword [ebp - 0x2b0]
lea edx, [ebp - 0x290]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], ecx
call sym._load_reg_dword
lea edx, [ebp - 0x290]
test eax, eax
jne 0x409db8
cmp dword [ebp - 0x290], 1
jne 0x409db8
mov eax, dword [ebp - 0x2ac]
mov dword [eax + 0x78], 1
mov eax, dword [ebp - 0x2b0]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call sym._load_reg_dword
test eax, eax
jne 0x409dec
cmp dword [ebp - 0x290], 1
jne 0x409dec
mov eax, dword [ebp - 0x2ac]
mov dword [eax + 0x7c], 1
movzx edx, byte [0x40b070]
test dl, 8
jne 0x40a771
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 0x60]
mov eax, esi
mov esi, ebx
mov ebx, ecx
mov ecx, eax
mov eax, edx
and eax, 8
cmp word [ebx], 0
je 0x40a5d8
test al, al
jne 0x409f75
mov eax, ebx
jmp 0x409e2b
add eax, 2
cmp word [eax], 0
jne 0x409e28
lea ebx, [eax + 2]
jmp 0x409e0d
cmp dword [ebp - 0x2a0], 4
jne 0x409843
mov eax, dword [ebp - 0x290]
mov dword [0x40b064], eax
jmp 0x409843
mov eax, dword [0x411184]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2b4]
call eax
mov dword [ebp - 0x2ac], eax
test eax, eax
je 0x40a5a6
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 - 0x2c0], eax
sub esp, 0x10
add eax, 1
je 0x40a4b1
mov edi, dword [ebp - 0x2cc]
lea eax, [edi + 0x18]
mov dword [ebp - 0x2d4], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x2c8], eax
call eax
mov ecx, 0x20
mov dword [ebp - 0x2d0], esi
push eax
mov eax, edi
mov ebx, dword [edi + 0x10]
mov esi, ecx
add eax, 0x10
xor edi, edi
mov dword [ebp - 0x2b0], eax
cmp ebx, dword [ebp - 0x2b0]
je 0x40a048
cmp dword [ebx + 0x38], 2
jbe 0x409f18
mov eax, dword [ebp - 0x2c0]
cmp eax, 0xffffffff
je 0x409f6e
lea edx, [ebx + 0x10]
call sym._is_root_pnp_service.isra.0
test eax, eax
je 0x409f6e
lea edx, [edi + 1]
cmp edx, esi
jb 0x409f5e
lea eax, [esi + esi]
shl esi, 3
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x2bc]
test eax, eax
je 0x40a048
mov dword [ebp - 0x2ac], eax
mov esi, dword [ebp - 0x2b8]
lock add dword [ebx + 0xc], 1
mov eax, dword [ebp - 0x2ac]
mov dword [eax + edi*4], ebx
mov edi, edx
mov ebx, dword [ebx]
jmp 0x409eef
mov eax, ebx
mov dword [ebp - 0x2b0], 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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x40b070]
mov ecx, dword [ebp - 0x2b0]
jmp 0x409e24
mov eax, dword [0x411184]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x409585
mov eax, esi
mov dword [ebp - 0x2ac], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x2ac]
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4099c2
mov eax, dword [ebp - 0x2c4]
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x409b4e
mov eax, dword [ebp - 0x2d4]
mov esi, dword [ebp - 0x2d0]
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2bc], eax
call eax
push eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], sym._compare_tags
mov dword [esp + 8], 4
call dword [sym.imp.ucrtbase.dll_qsort]
mov ecx, dword [ebp - 0x2cc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ecx
call sym._scmdatabase_lock_startup
mov dword [ebp - 0x2b8], edi
mov edi, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2d0], esi
jmp 0x40a0dc
test byte [0x40b070], 8
jne 0x40a120
mov eax, dword [ebp - 0x2b0]
mov dword [edi + eax*4], esi
add eax, 1
mov dword [ebp - 0x2b0], eax
add ebx, 1
cmp dword [ebp - 0x2b8], ebx
je 0x40a155
mov esi, dword [edi + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x40a0be
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._service_start
test eax, eax
je 0x40a116
test byte [0x40b070], 1
jne 0x40a44b
mov dword [esp], esi
call sym._release_service
jmp 0x40a0d9
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a0c7
mov esi, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2cc]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
cmp dword [ebp - 0x2b0], 0
je 0x40a490
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x4110b4], eax
test eax, eax
je 0x40a505
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp], 8
call eax
mov edx, dword [ebp - 0x2b8]
test eax, eax
mov dword [ebp - 0x2b4], eax
je 0x40a490
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b0]
lea edi, [ebp - 0x214]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2ac]
mov dword [eax + 4], ecx
mov eax, ebx
mov ecx, 7
rep stosd dword es:[edi], eax
mov ecx, 0xffffd8f0
mov dword [ebp - 0x210], edx
mov eax, ecx
mul dword [0x40b064]
mov dword [esp + 8], esi
sub edx, dword [0x40b064]
mov dword [esp], sym._delayed_autostart_callback_12
mov dword [ebp - 0x218], 1
mov ecx, eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x20c], sym._delayed_autostart_cancel_callback_8
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x40a54f
lea edx, [ebp - 0x290]
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 - 0x2b0], eax
mov eax, dword [ebp - 0x2c0]
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 - 0x2a8]
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 [0x411180]
push edx
mov dword [ebp - 0x2b4], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
mov eax, dword [0x4110b8]
push ecx
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_PostQueuedCompletionStatus]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call edi
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x218], esi
push ebx
push ebx
mov ebx, dword [0x411184]
mov dword [ebp - 0x214], esi
lea edi, [ebx + 0x18]
mov dword [ebp - 0x2b8], edi
mov dword [esp], edi
call eax
lea ecx, [ebx + 8]
push eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2ac], ecx
cmp ecx, eax
je 0x40a4f4
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x2a8], esi
mov dword [edx], eax
mov edx, dword [ebp - 0x214]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x214], eax
mov dword [eax], esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jmp 0x40a3ed
test esi, esi
je 0x40a3fb
lock add dword [esi + 0xc], 1
mov dword [esp], esi
call sym._process_terminate
mov eax, dword [ebp - 0x2bc]
mov dword [esp], edi
call eax
push eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x2b4]
call eax
push eax
push eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp], edi
call eax
push eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2ac]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [ebx + 0xc], esi
mov dword [esp], esi
call sym._release_process
mov esi, dword [ebp - 0x218]
cmp esi, dword [ebp - 0x2a8]
jne 0x40a385
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2bc]
call eax
push eax
mov eax, dword [0x4110b4]
test eax, eax
je 0x40a441
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 sym._RPC_Stop
jmp 0x409afa
mov dword [ebp - 0x2d4], eax
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x2d4]
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], 0x40b070
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a116
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
mov eax, dword [ebp - 0x2b0]
call eax
jmp 0x40a26e
test byte [0x40b070], 2
je 0x409eb2
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x409eb2
mov dword [ebp - 0x2a8], esi
mov edi, dword [ebp - 0x2b8]
jmp 0x40a3ed
test byte [0x40b070], 2
je 0x40a490
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b0], eax
jmp 0x40a49b
test byte [0x40b070], 2
jne 0x40a573
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b0], eax
call eax
jmp 0x40a49b
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40a558
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b0], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x2c8], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2bc], eax
jmp 0x40a27e
mov esi, 0x46a
mov ebx, esi
jmp 0x409585
mov ebx, esi
mov esi, ecx
test al, al
je 0x40a622
mov eax, dword [ebp - 0x2ac]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x40df80
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x40b070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x2ac]
mov edx, dword [eax + 0x64]
mov eax, esi
mov esi, ebx
mov ebx, edx
mov edx, eax
cmp word [ebx], 0
je 0x40a691
test byte [0x40b070], 8
jne 0x40a654
mov eax, ebx
jmp 0x40a649
add eax, 2
cmp word [eax], 0
jne 0x40a646
lea ebx, [eax + 2]
jmp 0x40a633
mov eax, ebx
mov dword [ebp - 0x2ac], 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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x2ac]
jmp 0x40a642
mov eax, dword [ebp - 0x29c]
mov ebx, esi
mov esi, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2a0]
push edx
cmp dword [eax + 0x34], 0
jne 0x40a6f2
test byte [0x40b070], 8
je 0x4099c8
mov eax, esi
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4099c2
mov dword [esp], eax
call sym._validate_service_config
test eax, eax
jne 0x40a73f
test byte [0x40b070], 2
je 0x4099c2
mov eax, esi
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], 0x40b070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4099c2
mov eax, dword [ebp - 0x2a0]
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 - 0x2a0]
mov dword [esp], eax
call sym._release_service
jmp 0x409928
mov eax, dword [ebp - 0x2ac]
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x40b070]
test dl, 8
je 0x409dfc
mov eax, dword [ebp - 0x2ac]
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x40b070]
test dl, 8
je 0x409dfc
mov eax, dword [ebp - 0x2ac]
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x40b070]
test dl, 8
je 0x409dfc
mov eax, dword [ebp - 0x2ac]
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], 0x40b070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x40b070]
test dl, 8
je 0x409dfc
mov eax, dword [ebp - 0x2ac]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x40df80
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x40b070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x40b070]
jmp 0x409dfc