Function at 0x4168b0
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 fcn.004167e0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateJobObjectW]
lea edx, [ebp - 0x3b8]
mov dword [0x4200dc], eax
mov dword [ebp - 0x3a8], 0x1800
push ebx
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SetInformationJobObject]
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 0x416942
test byte [0x418090], 2
jne 0x416dab
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]
sub esp, 0x10
mov dword [0x4200d8], eax
mov dword [ebp - 0x3bc], eax
mov eax, dword [0x4200dc]
mov dword [esp + 0xc], 8
mov dword [esp + 8], edx
mov dword [esp + 4], 7
mov dword [esp], eax
mov dword [ebp - 0x3c0], eax
call ebx
sub esp, 0x10
test eax, eax
jne 0x4169e9
test byte [0x418090], 2
je 0x41692b
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 + 0x10], eax
mov dword [esp + 8], str.main
mov dword [esp + 4], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x41692b
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 - 0x3e0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x4200e0
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 0x416934
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 0x416c09
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], pe_nt_image_headers32
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x3d4], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x3c8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3cc]
mov dword [esp + 4], str.ServicesPipeTimeout
mov dword [esp], eax
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
call edi
sub esp, 0x18
test eax, eax
jne 0x416b2a
cmp dword [ebp - 0x3c8], 1
jne 0x416b2a
mov eax, dword [ebp - 0x3d4]
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 0x416b2a
mov dword [0x41808c], eax
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], pe_nt_image_headers32
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3d4]
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 + 4], str.WaitToKillServiceTimeout
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x416bab
cmp dword [ebp - 0x3c8], 1
jne 0x416bab
mov eax, dword [ebp - 0x3d4]
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 0x416bab
mov dword [0x418088], eax
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x344]
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 + 4], str.AutoStartDelay
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x417243
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 - 0x3ec], eax
call eax
mov dword [0x420020], eax
test eax, eax
je 0x417b4c
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 [0x420020]
sub esp, 0xc
mov edx, dword [eax + 0x18]
mov dword [edx + 0x18], str..._wine_9.6_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
test eax, eax
jne 0x417571
lea eax, [ebp - 0x218]
mov dword [ebp - 0x3d0], ebx
mov ecx, eax
mov esi, dword [0x420020]
shr ecx, 0x10
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x3dc], ecx
mov ebx, eax
jmp 0x416cfb
test byte [0x418090], 2
jne 0x416de1
inc dword [ebp - 0x3d0]
mov eax, dword [ebp - 0x3d0]
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
cmp eax, 0x103
je 0x416f42
test eax, eax
jne 0x416ce8
lea eax, [ebp - 0x3c8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00406600
test eax, eax
jne 0x416f42
test byte [0x418090], 8
jne 0x416e78
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 [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x3c8]
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x416e18
test byte [0x418090], 2
jne 0x4175af
mov dword [esp], edi
call fcn.00406fd0
jmp 0x416cf5
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 + 0x10], eax
mov dword [esp + 8], str.main
mov dword [esp + 4], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x41692b
mov ecx, dword [ebp - 0x3d0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
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], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x416cf5
mov ecx, dword [ebp - 0x3c4]
lea eax, [edi + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [esp], ecx
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x3d8], ecx
call fcn.00408dc0
mov edx, eax
test eax, eax
je 0x416fbf
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3d8], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
mov edx, dword [ebp - 0x3d8]
jmp 0x416d91
cmp dword [ebp - 0x3dc], 0
je 0x417593
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
push edx
push edx
je 0x416ecf
mov eax, 0x41ac2d
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
jmp 0x416d55
inc eax
cmp word [ebx + eax*2], 0
jne 0x416ece
mov word [ebp - 0x344], 0x224c
lea edx, [ebp - 0x342]
mov ecx, ebx
mov dword [ebp - 0x3d8], esi
mov dword [ebp - 0x3e4], ebx
lea esi, [eax - 1]
test eax, eax
jle 0x417535
lea eax, [ebp - 0x222]
cmp edx, eax
ja 0x417535
mov ax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x4174a9
ja 0x41748a
cmp ax, 9
je 0x4174b8
cmp ax, 0xa
jne 0x4174d4
mov word [edx], 0x6e5c
mov eax, esi
add edx, 2
jmp 0x416ef3
call fcn.00405710
mov dword [ebp - 0x3f0], eax
test eax, eax
je 0x417260
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d0], eax
mov ebx, dword [0x420020]
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 - 0x3d0]
push edi
mov dword [esp], ebx
call eax
mov eax, dword [0x4200e4]
test eax, eax
je 0x416fa7
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push ecx
test byte [0x418090], 8
jne 0x417605
mov ebx, dword [ebp - 0x3f0]
jmp 0x416934
lea eax, [edi + 0x44]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], str.Group
mov dword [esp], eax
call fcn.00408dc0
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x50]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], str.ObjectName
mov dword [esp], eax
call fcn.00408dc0
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x54]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call fcn.00408dc0
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], str.Description
mov dword [esp], eax
call fcn.00408dc0
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x60]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], str.DependOnService
mov dword [esp], eax
call fcn.00408f90
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], str.DependOnGroup
mov dword [esp], eax
call fcn.00408f90
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x34]
mov dword [esp + 4], str.Type
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call fcn.00409110
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x38]
mov dword [esp + 4], str.Start
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call fcn.00409110
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x3c]
mov dword [esp + 4], str.ErrorControl
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call fcn.00409110
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x48]
mov dword [esp + 4], 0x41b640
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call fcn.00409110
mov edx, eax
test eax, eax
jne 0x416e57
lea eax, [edi + 0x58]
mov dword [esp + 4], str.PreshutdownTimeout
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp], eax
call fcn.00409110
mov edx, eax
test eax, eax
jne 0x416e57
lea edx, [ebp - 0x344]
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.WOW64
mov dword [esp], eax
mov dword [ebp - 0x3e4], edx
call fcn.00409110
mov edx, dword [ebp - 0x3e4]
test eax, eax
jne 0x4171dc
cmp dword [ebp - 0x344], 1
jne 0x4171dc
mov dword [edi + 0x78], 1
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call fcn.00409110
test eax, eax
jne 0x41720a
cmp dword [ebp - 0x344], 1
jne 0x41720a
mov dword [edi + 0x7c], 1
mov al, byte [0x418090]
test al, 8
jne 0x417cc2
mov ecx, dword [edi + 0x60]
mov dl, al
and edx, 8
cmp word [ecx], 0
je 0x417b58
test dl, dl
jne 0x417445
mov edx, ecx
jmp 0x417238
add edx, 2
cmp word [edx], 0
jne 0x417235
lea ecx, [edx + 2]
jmp 0x41721a
cmp dword [ebp - 0x3c8], 4
jne 0x416bf9
mov eax, dword [ebp - 0x344]
mov dword [0x418084], eax
jmp 0x416bf9
mov eax, dword [0x420020]
mov dword [esp], pe_nt_image_headers32
mov dword [ebp - 0x3f8], eax
mov eax, dword [ebp - 0x3ec]
call eax
mov dword [ebp - 0x3dc], eax
test eax, eax
je 0x417b26
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
inc eax
je 0x417a95
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 dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3e8], 0x20
push eax
mov esi, dword [ebp - 0x3fc]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x3d0], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x3e4], eax
mov ecx, dword [ebp - 0x3e4]
cmp dword [ebp - 0x3d0], ecx
je 0x417638
mov eax, dword [ebp - 0x3d0]
cmp dword [eax + 0x38], 2
jbe 0x4173d2
cmp esi, 0xffffffff
je 0x417432
lea edi, [ebp - 0x340]
mov ecx, 6
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x344], 0x1c
lea edi, [ebp - 0x344]
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 0x417432
mov eax, dword [ebp - 0x3d4]
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
jne 0x4173b2
inc ebx
jmp 0x417355
mov eax, dword [ebp - 0x3d0]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3d4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4173af
mov eax, dword [ebp - 0x3d8]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x3e8]
cmp edi, eax
jb 0x417413
mov ebx, eax
add ebx, eax
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x417638
mov dword [ebp - 0x3e8], ebx
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x3d0]
lock inc dword [eax + 0xc]
mov edx, dword [ebp - 0x3d8]
mov ecx, dword [ebp - 0x3dc]
mov dword [ebp - 0x3d8], edi
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x3d0]
mov eax, dword [eax]
mov dword [ebp - 0x3d0], eax
jmp 0x417309
mov eax, ecx
mov dword [ebp - 0x3d8], ecx
call fcn.00405db0
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov al, byte [0x418090]
mov ecx, dword [ebp - 0x3d8]
jmp 0x417231
cmp ax, 0x22
je 0x417526
cmp ax, 0x5c
jne 0x4174c7
mov word [edx], 0x5c5c
mov eax, esi
add edx, 2
jmp 0x416ef3
mov word [edx], 0x725c
mov eax, esi
add edx, 2
jmp 0x416ef3
mov word [edx], 0x745c
mov eax, esi
add edx, 2
jmp 0x416ef3
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4175f3
mov edi, eax
mov byte [edx], 0x5c
shr di, 0xc
add edx, 5
and edi, 0xffff
mov bl, byte [edi + str.0123456789abcdefvalidate_service_config]
mov edi, eax
shr di, 8
mov byte [edx - 4], bl
and edi, 0xf
mov bl, byte [edi + str.0123456789abcdefvalidate_service_config]
mov edi, eax
shr di, 4
and eax, 0xf
and edi, 0xf
mov byte [edx - 3], bl
mov al, byte [eax + str.0123456789abcdefvalidate_service_config]
mov bl, byte [edi + str.0123456789abcdefvalidate_service_config]
mov byte [edx - 1], al
mov byte [edx - 2], bl
mov eax, esi
jmp 0x416ef3
mov word [edx], 0x225c
mov eax, esi
add edx, 2
jmp 0x416ef3
mov eax, esi
mov ebx, dword [ebp - 0x3e4]
mov esi, dword [ebp - 0x3d8]
mov byte [edx], 0x22
test eax, eax
jle 0x4175fd
lea eax, [edx + 4]
mov word [edx + 1], 0x2e2e
mov byte [edx + 3], 0x2e
lea edx, [ebp - 0x344]
mov byte [eax], 0
mov dword [esp], edx
call fcn.004164a0
jmp 0x416ea1
mov edx, dword [0x420020]
mov dword [ebp - 0x3d0], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x3d0]
mov ebx, eax
jmp 0x416934
mov eax, ebx
mov dword [esp], 0x41ac20
and eax, 0xffff
mov dword [esp + 4], eax
call fcn.00405d50
jmp 0x416ea1
mov eax, ebx
mov dword [ebp - 0x3d8], edx
call fcn.00405db0
mov edx, dword [ebp - 0x3d8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Error__ld_reading_registry_key_for_service__s___skipping_n
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x416d9e
mov byte [edx], al
inc edx
mov eax, esi
jmp 0x416ef3
lea eax, [edx + 1]
jmp 0x41755b
mov eax, dword [ebp - 0x3f0]
mov dword [esp + 0xc], str.services.exe_exited_with_code__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.main
mov dword [esp + 4], 0x418090
mov dword [esp], 3
call fcn.00405e80
jmp 0x416fb4
mov eax, dword [ebp - 0x400]
xor edi, edi
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x3e4], eax
call eax
xor ebx, ebx
push eax
mov eax, dword [ebp - 0x3d8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp], eax
mov dword [esp + 0xc], 0x405a40
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 fcn.004073b0
cmp dword [ebp - 0x3d8], ebx
je 0x417729
mov eax, dword [ebp - 0x3dc]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
je 0x4176c3
test byte [0x418090], 8
jne 0x4176f7
mov eax, dword [ebp - 0x3dc]
inc ebx
mov dword [eax + edi*4], esi
inc edi
jmp 0x417692
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00408660
test eax, eax
je 0x4176ec
test byte [0x418090], 1
jne 0x4179f5
mov dword [esp], esi
inc ebx
call fcn.004072e0
jmp 0x417692
mov eax, dword [esi + 0x10]
call fcn.00405db0
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
jmp 0x4176b6
mov ecx, dword [ebp - 0x3f8]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [ecx + 4], ebx
test edi, edi
je 0x417a74
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x4200d4], eax
test eax, eax
je 0x417a3a
mov dword [ebp - 0x3d0], eax
mov dword [esp], 8
mov eax, dword [ebp - 0x3ec]
call eax
mov edx, dword [ebp - 0x3d0]
mov esi, eax
test eax, eax
je 0x417a74
mov dword [eax], edi
mov eax, dword [ebp - 0x3dc]
mov dword [esi + 4], eax
mov ecx, 7
mov eax, ebx
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
mov eax, 0xffffd8f0
mov dword [ebp - 0x210], edx
mul dword [0x418084]
sub edx, dword [0x418084]
mov ecx, eax
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x20c], 0x407360
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x340], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 0x408810
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x417ad8
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 - 0x3d0], 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], 0x407080
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0x3e0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [section..bss]
mov esi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push edx
mov dword [ebp - 0x3dc], esi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call esi
mov eax, dword [0x4200d8]
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 esi
mov edi, dword [ebp - 0x3d4]
mov eax, dword [ebp - 0x3f4]
mov dword [ebp - 0x218], edi
push ebx
mov dword [ebp - 0x214], edi
push ebx
mov ebx, dword [0x420020]
lea esi, [ebx + 0x18]
mov dword [esp], esi
call eax
lea ecx, [ebx + 8]
mov dword [ebp - 0x3d8], ecx
push eax
mov eax, dword [ebx + 8]
cmp ecx, eax
je 0x4179a1
mov edx, dword [ebp - 0x214]
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], edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
jmp 0x4179a1
cmp edi, dword [ebp - 0x3d4]
je 0x4179ab
lock inc dword [edi + 0xc]
mov dword [esp], edi
call fcn.004074b0
mov eax, dword [ebp - 0x3e4]
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 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 - 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 fcn.00406f40
mov edi, dword [ebp - 0x218]
test edi, edi
jne 0x417936
mov eax, dword [ebp - 0x3e4]
mov dword [esp], esi
call eax
push eax
mov eax, dword [0x4200d4]
test eax, eax
je 0x4179eb
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x4200d4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push eax
call fcn.00405960
jmp 0x416f60
mov dword [ebp - 0x3d0], eax
mov eax, dword [esi + 0x10]
call fcn.00405db0
mov ecx, dword [ebp - 0x3d0]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Auto_start_service__s_failed_to_start:__ld_n
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 4], 0x418090
mov dword [esp], 0
call fcn.00405e80
jmp 0x4176ec
test byte [0x418090], 2
je 0x417a74
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThreadpoolCleanupGroup_failed_with_error__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.schedule_delayed_autostart
mov dword [esp + 4], 0x418090
mov dword [esp], 1
call fcn.00405e80
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3dc]
mov dword [esp], eax
mov eax, dword [ebp - 0x3d0]
call eax
jmp 0x417825
test byte [0x418090], 2
je 0x4172bd
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 + 0x10], eax
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 4], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x4172bd
test byte [0x418090], 2
jne 0x417af3
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x3d0], eax
call eax
jmp 0x417a7f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThreadpoolWait_failed:__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.schedule_delayed_autostart
mov dword [esp + 4], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x417ae1
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x3d0], 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 - 0x3e4], eax
jmp 0x417835
mov eax, 0x46a
mov ebx, eax
jmp 0x416934
test dl, dl
je 0x417b97
mov edx, dword [edi + 0x64]
mov eax, 0x41af38
cmp word [edx], 0
jne 0x417b6f
mov eax, str._none_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov edx, dword [edi + 0x64]
cmp word [edx], 0
je 0x417bf8
test byte [0x418090], 8
jne 0x417bbb
mov eax, edx
jmp 0x417bb0
add eax, 2
cmp word [eax], 0
jne 0x417bad
lea edx, [eax + 2]
jmp 0x417b9a
mov eax, edx
mov dword [ebp - 0x3d8], edx
call fcn.00405db0
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov edx, dword [ebp - 0x3d8]
jmp 0x417ba9
mov eax, dword [ebp - 0x3c4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
cmp dword [edi + 0x34], 0
jne 0x417c4f
test byte [0x418090], 8
je 0x416d9e
mov eax, ebx
call fcn.00405db0
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
jmp 0x416d9e
mov dword [esp], edi
call fcn.00406aa0
test eax, eax
jne 0x417c9c
test byte [0x418090], 2
je 0x416d9e
mov eax, ebx
call fcn.00405db0
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], 0x418090
mov dword [esp], 1
call fcn.00405e80
jmp 0x416d9e
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 fcn.004072e0
jmp 0x416cf5
mov eax, dword [edi + 0x40]
call fcn.00405db0
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov al, byte [0x418090]
test al, 8
je 0x417217
mov eax, dword [edi + 0x44]
call fcn.00405db0
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov al, byte [0x418090]
test al, 8
je 0x417217
mov eax, dword [edi + 0x50]
call fcn.00405db0
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov al, byte [0x418090]
test al, 8
je 0x417217
mov eax, dword [edi + 0x54]
call fcn.00405db0
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], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov al, byte [0x418090]
test al, 8
je 0x417217
mov edx, dword [edi + 0x60]
mov eax, 0x41af38
cmp word [edx], 0
jne 0x417dc9
mov eax, str._none_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418090
mov dword [esp], 3
call fcn.00405e80
mov al, byte [0x418090]
jmp 0x417217