Function at 0x4158f0
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, 0x2fc
call sym.___main
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateJobObjectW]
lea edx, [ebp - 0x290]
mov dword [ebp - 0x280], 0x1800
mov ebx, dword [sym.imp.kernel32.dll_SetInformationJobObject]
sub esp, 8
mov dword [0x41b0bc], 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 0x415983
test byte [0x417070], 2
jne 0x415dbf
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 - 0x2a0]
mov dword [0x41b0b8], eax
sub esp, 0x10
mov dword [ebp - 0x29c], eax
mov eax, dword [0x41b0bc]
mov dword [esp + 0xc], 8
mov dword [ebp - 0x2a0], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 7
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jne 0x415a2a
test byte [0x417070], 2
je 0x41596c
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41596c
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 - 0x2b0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x41b0c0
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 0x415975
lea eax, [ebp - 0x2ac]
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 0x415c43
lea eax, [ebp - 0x2a4]
lea esi, [ebp - 0x220]
mov dword [ebp - 0x2a4], pe_nt_image_headers32
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2a8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2ac]
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 - 0x2b4], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x415b64
cmp dword [ebp - 0x2a8], 1
jne 0x415b64
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x415b64
mov dword [0x41706c], eax
lea eax, [ebp - 0x2a4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2a8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2a4], pe_nt_image_headers32
mov dword [esp], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp + 8], 0
mov dword [esp + 4], str.WaitToKillServiceTimeout
call eax
sub esp, 0x18
test eax, eax
jne 0x415bdf
cmp dword [ebp - 0x2a8], 1
jne 0x415bdf
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x415bdf
mov dword [0x417068], eax
lea eax, [ebp - 0x2a4]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x298]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2a8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2a4], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp + 4], str.AutoStartDelay
call eax
sub esp, 0x18
test eax, eax
je 0x416220
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x30
mov dword [ebp - 0x2bc], eax
call eax
mov dword [0x41b184], eax
test eax, eax
je 0x4169b6
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], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push eax
mov eax, dword [0x41b184]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str._root_wine_build_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 edi
sub esp, 0x24
mov esi, eax
test eax, eax
jne 0x4163a6
mov edi, dword [0x41b184]
lea esi, [ebp - 0x220]
jmp 0x415d15
test byte [0x417070], 2
jne 0x415df5
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 0x415ec6
test eax, eax
jne 0x415d05
lea eax, [ebp - 0x2a8]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._service_create
test eax, eax
jne 0x415ec6
test byte [0x417070], 8
jne 0x415e92
lea eax, [ebp - 0x2a4]
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 0x415e26
test byte [0x417070], 2
jne 0x4163bb
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call sym._free_service_entry
jmp 0x415d12
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41596c
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x415d12
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x2a4]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [ebp - 0x2b4], eax
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x2b8], ecx
call sym._load_reg_string
mov edx, eax
test eax, eax
je 0x415f43
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2b4]
push eax
jmp 0x415d9f
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x415d69
call sym._RPC_Init
mov dword [ebp - 0x2cc], eax
test eax, eax
je 0x41623d
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b8], eax
mov ebx, dword [0x41b184]
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 - 0x2b8]
push edi
mov dword [esp], ebx
call eax
mov eax, dword [0x41b0c4]
test eax, eax
je 0x415f2b
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x417070], 8
jne 0x4163ff
mov ebx, dword [ebp - 0x2cc]
jmp 0x415975
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
mov dword [esp + 4], 0x419620
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._load_reg_dword
mov edx, eax
test eax, eax
jne 0x415e71
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
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 0x415e71
mov ecx, dword [ebp - 0x2b8]
lea edx, [ebp - 0x298]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], ecx
call sym._load_reg_dword
lea edx, [ebp - 0x298]
test eax, eax
jne 0x4161a2
cmp dword [ebp - 0x298], 1
jne 0x4161a2
mov eax, dword [ebp - 0x2b4]
mov dword [eax + 0x78], 1
mov eax, dword [ebp - 0x2b8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call sym._load_reg_dword
test eax, eax
jne 0x4161d6
cmp dword [ebp - 0x298], 1
jne 0x4161d6
mov eax, dword [ebp - 0x2b4]
mov dword [eax + 0x7c], 1
movzx edx, byte [0x417070]
test dl, 8
jne 0x416b5b
mov eax, dword [ebp - 0x2b4]
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 0x4169c2
test al, al
jne 0x41635f
mov eax, ebx
jmp 0x416215
add eax, 2
cmp word [eax], 0
jne 0x416212
lea ebx, [eax + 2]
jmp 0x4161f7
cmp dword [ebp - 0x2a8], 4
jne 0x415c33
mov eax, dword [ebp - 0x298]
mov dword [0x417064], eax
jmp 0x415c33
mov eax, dword [0x41b184]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2bc]
call eax
mov dword [ebp - 0x2b4], eax
test eax, eax
je 0x416990
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 - 0x2c8], eax
sub esp, 0x10
add eax, 1
je 0x41689b
mov edi, dword [ebp - 0x2d4]
lea eax, [edi + 0x18]
mov dword [ebp - 0x2dc], eax
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x2d0], eax
call eax
mov ecx, 0x20
mov dword [ebp - 0x2d8], esi
push eax
mov eax, edi
mov ebx, dword [edi + 0x10]
mov esi, ecx
add eax, 0x10
xor edi, edi
mov dword [ebp - 0x2b8], eax
cmp ebx, dword [ebp - 0x2b8]
je 0x416432
cmp dword [ebx + 0x38], 2
jbe 0x416302
mov eax, dword [ebp - 0x2c8]
cmp eax, 0xffffffff
je 0x416358
lea edx, [ebx + 0x10]
call sym._is_root_pnp_service.isra.0
test eax, eax
je 0x416358
lea edx, [edi + 1]
cmp edx, esi
jb 0x416348
lea eax, [esi + esi]
shl esi, 3
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x2c4]
test eax, eax
je 0x416432
mov dword [ebp - 0x2b4], eax
mov esi, dword [ebp - 0x2c0]
lock add dword [ebx + 0xc], 1
mov eax, dword [ebp - 0x2b4]
mov dword [eax + edi*4], ebx
mov edi, edx
mov ebx, dword [ebx]
jmp 0x4162d9
mov eax, ebx
mov dword [ebp - 0x2b8], 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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x417070]
mov ecx, dword [ebp - 0x2b8]
jmp 0x41620e
mov eax, dword [0x41b184]
mov ebx, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x415975
mov eax, esi
mov dword [ebp - 0x2b4], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x2b4]
mov dword [esp + 0xc], str.Error__ld_reading_registry_key_for_service__s___skipping_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x415dac
mov eax, dword [ebp - 0x2cc]
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x415f38
mov eax, dword [ebp - 0x2dc]
mov esi, dword [ebp - 0x2d8]
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2c4], eax
call eax
push eax
mov eax, dword [ebp - 0x2b4]
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 - 0x2d4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ecx
call sym._scmdatabase_lock_startup
mov dword [ebp - 0x2c0], edi
mov edi, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2d8], esi
jmp 0x4164c6
test byte [0x417070], 8
jne 0x41650a
mov eax, dword [ebp - 0x2b8]
mov dword [edi + eax*4], esi
add eax, 1
mov dword [ebp - 0x2b8], eax
add ebx, 1
cmp dword [ebp - 0x2c0], ebx
je 0x41653f
mov esi, dword [edi + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x4164a8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._service_start
test eax, eax
je 0x416500
test byte [0x417070], 1
jne 0x416835
mov dword [esp], esi
call sym._release_service
jmp 0x4164c3
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4164b1
mov esi, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0x2d4]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
cmp dword [ebp - 0x2b8], 0
je 0x41687a
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x41b0b4], eax
test eax, eax
je 0x4168ef
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2bc]
mov dword [esp], 8
call eax
mov edx, dword [ebp - 0x2c0]
test eax, eax
mov dword [ebp - 0x2bc], eax
je 0x41687a
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2b8]
lea edi, [ebp - 0x21c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2b4]
mov dword [eax + 4], ecx
mov eax, ebx
mov ecx, 7
rep stosd dword es:[edi], eax
mov ecx, 0xffffd8f0
mov dword [ebp - 0x218], edx
mov eax, ecx
mul dword [0x417064]
mov dword [esp + 8], esi
sub edx, dword [0x417064]
mov dword [esp], sym._delayed_autostart_callback_12
mov dword [ebp - 0x220], 1
mov ecx, eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x214], sym._delayed_autostart_cancel_callback_8
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x416939
lea edx, [ebp - 0x298]
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 - 0x2b8], eax
mov eax, dword [ebp - 0x2c8]
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 - 0x2b0]
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 [0x41b180]
push edx
mov dword [ebp - 0x2bc], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
mov eax, dword [0x41b0b8]
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 - 0x2d0]
mov dword [ebp - 0x220], esi
push ebx
push ebx
mov ebx, dword [0x41b184]
mov dword [ebp - 0x21c], esi
lea edi, [ebx + 0x18]
mov dword [ebp - 0x2c0], edi
mov dword [esp], edi
call eax
lea ecx, [ebx + 8]
push eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2b4], ecx
cmp ecx, eax
je 0x4168de
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x2b0], esi
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 dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jmp 0x4167d7
test esi, esi
je 0x4167e5
lock add dword [esi + 0xc], 1
mov dword [esp], esi
call sym._process_terminate
mov eax, dword [ebp - 0x2c4]
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 - 0x2bc]
call eax
push eax
push eax
mov eax, dword [ebp - 0x2d0]
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 - 0x2b4]
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 - 0x220]
cmp esi, dword [ebp - 0x2b0]
jne 0x41676f
mov eax, dword [ebp - 0x2c0]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c4]
call eax
push eax
mov eax, dword [0x41b0b4]
test eax, eax
je 0x41682b
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x41b0b4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call sym._RPC_Stop
jmp 0x415ee4
mov dword [ebp - 0x2dc], eax
mov eax, dword [esi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x2dc]
mov dword [esp + 0xc], str.Auto_start_service__s_failed_to_start:__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 4], 0x417070
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x416500
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2b8]
call eax
jmp 0x416658
test byte [0x417070], 2
je 0x41629c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_enumerate_devices__error__lx._n
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41629c
mov dword [ebp - 0x2b0], esi
mov edi, dword [ebp - 0x2c0]
jmp 0x4167d7
test byte [0x417070], 2
je 0x41687a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThreadpoolCleanupGroup_failed_with_error__lu_n
mov dword [esp + 8], str.schedule_delayed_autostart
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b8], eax
jmp 0x416885
test byte [0x417070], 2
jne 0x41695d
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b8], eax
call eax
jmp 0x416885
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThreadpoolWait_failed:__lu_n
mov dword [esp + 8], str.schedule_delayed_autostart
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x416942
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2b8], eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x2d0], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2c4], eax
jmp 0x416668
mov esi, 0x46a
mov ebx, esi
jmp 0x415975
mov ebx, esi
mov esi, ecx
test al, al
je 0x416a0c
mov eax, dword [ebp - 0x2b4]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x418f0c
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x417070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x2b4]
mov edx, dword [eax + 0x64]
mov eax, esi
mov esi, ebx
mov ebx, edx
mov edx, eax
cmp word [ebx], 0
je 0x416a7b
test byte [0x417070], 8
jne 0x416a3e
mov eax, ebx
jmp 0x416a33
add eax, 2
cmp word [eax], 0
jne 0x416a30
lea ebx, [eax + 2]
jmp 0x416a1d
mov eax, ebx
mov dword [ebp - 0x2b4], 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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x2b4]
jmp 0x416a2c
mov eax, dword [ebp - 0x2a4]
mov ebx, esi
mov esi, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2a8]
push edx
cmp dword [eax + 0x34], 0
jne 0x416adc
test byte [0x417070], 8
je 0x415db2
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x415dac
mov dword [esp], eax
call sym._validate_service_config
test eax, eax
jne 0x416b29
test byte [0x417070], 2
je 0x415dac
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], 0x417070
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x415dac
mov eax, dword [ebp - 0x2a8]
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 - 0x2a8]
mov dword [esp], eax
call sym._release_service
jmp 0x415d12
mov eax, dword [ebp - 0x2b4]
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x417070]
test dl, 8
je 0x4161e6
mov eax, dword [ebp - 0x2b4]
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x417070]
test dl, 8
je 0x4161e6
mov eax, dword [ebp - 0x2b4]
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x417070]
test dl, 8
je 0x4161e6
mov eax, dword [ebp - 0x2b4]
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], 0x417070
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x417070]
test dl, 8
je 0x4161e6
mov eax, dword [ebp - 0x2b4]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x418f0c
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x417070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx edx, byte [0x417070]
jmp 0x4161e6