Function at 0x409920
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, 0x30c
call fcn.00409860
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 [0x4110dc], 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 0x4099b3
test byte [0x40b070], 2
jne 0x409e5e
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
xor eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
movd xmm1, dword [0x4110dc]
mov dword [0x4110d8], eax
sub esp, 0x10
movd xmm0, eax
lea eax, [ebp - 0x2b8]
movdqa xmm2, xmm1
punpckldq xmm2, xmm0
movq qword [ebp - 0x2b8], xmm2
mov dword [esp + 0xc], 8
mov dword [esp + 8], eax
mov dword [esp + 4], 7
movd dword [esp], xmm1
call ebx
sub esp, 0x10
test eax, eax
jne 0x409a61
test byte [0x40b070], 2
je 0x40999c
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 + 4], 0x40b070
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00405f10
jmp 0x40999c
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0xc], str.__wine_SvcctlStarted
xor edi, edi
mov dword [esp + 8], ecx
xor esi, esi
mov dword [esp], ebx
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CreateEventW]
mov ebx, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [ebp - 0x2dc], eax
sub esp, 0x10
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x4110e0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlServiceCurrent
mov dword [esp], 0x80000002
call ebx
sub esp, 0x24
mov edi, eax
test eax, eax
jne 0x4099a5
lea eax, [ebp - 0x2c4]
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 0x409c6e
lea eax, [ebp - 0x2bc]
xor edx, edx
mov dword [ebp - 0x2bc], pe_nt_image_headers32
lea esi, [ebp - 0x2c0]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x2c8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], str.ServicesPipeTimeout
mov eax, dword [ebp - 0x2c4]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x2cc], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x409b95
cmp dword [ebp - 0x2c0], 1
jne 0x409b95
xor eax, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x409b95
mov dword [0x40b06c], eax
mov dword [ebp - 0x2bc], pe_nt_image_headers32
lea eax, [ebp - 0x2bc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.WaitToKillServiceTimeout
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2cc]
call eax
sub esp, 0x18
test eax, eax
jne 0x409c12
cmp dword [ebp - 0x2c0], 1
jne 0x409c12
xor eax, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x409c12
mov dword [0x40b068], eax
mov dword [ebp - 0x2bc], 4
lea eax, [ebp - 0x2bc]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2b0]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.AutoStartDelay
mov eax, dword [ebp - 0x2c4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2cc]
call eax
sub esp, 0x18
test eax, eax
je 0x40a25a
mov eax, dword [ebp - 0x2c4]
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 - 0x2e8], eax
call eax
mov dword [0x411020], eax
test eax, eax
je 0x40aa2e
xor ecx, ecx
xor esi, esi
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
movd xmm1, ecx
lea ecx, [eax + 8]
punpckldq xmm1, xmm1
add eax, 0x18
movd xmm0, ecx
punpckldq xmm0, xmm0
punpcklqdq xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp + 8], 0x10000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionEx]
mov eax, dword [0x411020]
xor edx, edx
sub esp, 0xc
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x18], str..._.._wine_programs_services_services.c:_scmdatabase
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 4], str.SystemCurrentControlSetServices
mov dword [esp], 0x80000002
call ebx
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x40a467
lea eax, [ebp - 0x220]
mov esi, dword [0x411020]
mov dword [ebp - 0x2c8], eax
shr eax, 0x10
mov dword [ebp - 0x2d0], eax
jmp 0x409d4f
test byte [0x40b070], 2
jne 0x409e94
add edi, 1
mov dword [esp + 0xc], 0x104
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
cmp eax, 0x103
je 0x40a1ea
test eax, eax
jne 0x409d3f
lea eax, [ebp - 0x2c0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp], eax
call fcn.00405f60
test eax, eax
jne 0x40a1ea
test byte [0x40b070], 8
jne 0x409ec5
xor ecx, ecx
mov dword [esp + 0xc], 0x20019
lea eax, [ebp - 0x2bc]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov ebx, dword [ebp - 0x2c0]
sub esp, 0x14
mov edx, eax
test eax, eax
jne 0x409e44
mov ecx, dword [ebp - 0x2bc]
lea eax, [ebx + 0x40]
xor edx, edx
mov dword [ebp - 0x2b0], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [ebp - 0x2cc], ecx
mov dword [esp], ecx
call fcn.00408a10
mov edx, eax
test eax, eax
je 0x409f27
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2cc], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
mov edx, dword [ebp - 0x2cc]
test byte [0x40b070], 2
jne 0x40a1a2
mov dword [esp], ebx
call fcn.00406a10
jmp 0x409d4c
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 + 4], 0x40b070
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00405f10
jmp 0x40999c
mov dword [esp + 0x14], edi
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 fcn.00405f10
jmp 0x409d4c
cmp dword [ebp - 0x2d0], 0
je 0x40a47c
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x2c8]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x40a277
mov eax, ebx
call fcn.00405c20
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], 0x40b070
mov dword [esp], 3
call fcn.00405f10
jmp 0x409daf
lea eax, [ebx + 0x44]
mov dword [esp + 4], str.Group
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408a10
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x50]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.ObjectName
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408a10
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x54]
mov dword [esp + 4], str.DisplayName
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408a10
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x5c]
mov dword [esp + 4], str.Description
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408a10
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x60]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.DependOnService
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408be0
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x64]
mov dword [esp + 4], str.DependOnGroup
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408be0
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x34]
mov dword [esp + 4], str.Type
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x38]
mov dword [esp + 4], str.Start
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x3c]
mov dword [esp + 4], str.ErrorControl
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x48]
mov dword [esp + 4], 0x40e680
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
mov edx, eax
test eax, eax
jne 0x409e28
lea eax, [ebx + 0x58]
mov dword [esp + 4], str.PreshutdownTimeout
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
mov edx, eax
test eax, eax
jne 0x409e28
lea edx, [ebp - 0x2b0]
mov dword [esp + 8], edx
mov dword [ebp - 0x2d4], edx
mov dword [esp + 4], str.WOW64
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
mov edx, dword [ebp - 0x2d4]
test eax, eax
jne 0x40a13c
cmp dword [ebp - 0x2b0], 1
jne 0x40a13c
mov dword [ebx + 0x78], 1
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.00408d60
test eax, eax
jne 0x40a16a
cmp dword [ebp - 0x2b0], 1
jne 0x40a16a
mov dword [ebx + 0x7c], 1
movzx eax, byte [0x40b070]
test al, 8
jne 0x40abb9
mov edx, dword [ebx + 0x60]
mov ecx, eax
and ecx, 8
cmp word [edx], 0
je 0x40aa3a
test cl, cl
je 0x40a197
jmp 0x40a9c6
add edx, 2
cmp word [edx], 0
jne 0x40a194
add edx, 2
jmp 0x40a17c
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], edx
call fcn.00405e40
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x2cc]
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], 0x40b070
mov dword [esp + 0x10], edx
mov dword [esp], 1
call fcn.00405f10
jmp 0x409e51
call fcn.00405770
mov dword [ebp - 0x2ec], eax
test eax, eax
je 0x40a281
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov esi, dword [0x411020]
xor edi, edi
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ecx
mov eax, dword [esi + 0x18]
mov dword [eax + 0x18], edi
lea eax, [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push eax
mov dword [esp], esi
call ebx
mov eax, dword [0x4110e4]
test eax, eax
je 0x40a242
mov dword [esp], eax
call dword [sym.imp.userenv.dll_DestroyEnvironmentBlock]
push edx
test byte [0x40b070], 8
jne 0x40a4a5
mov edi, dword [ebp - 0x2ec]
jmp 0x4099a5
cmp dword [ebp - 0x2c0], 4
jne 0x409c5e
mov eax, dword [ebp - 0x2b0]
mov dword [0x40b064], eax
jmp 0x409c5e
mov eax, 0x40dc6d
jmp 0x409efa
mov esi, dword [0x411020]
mov dword [esp], pe_nt_image_headers32
mov eax, dword [ebp - 0x2e8]
call eax
mov dword [ebp - 0x2d4], eax
test eax, eax
je 0x40aa0d
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], ebx
mov dword [esp + 4], str.ROOT
mov dword [esp], edi
call dword [sym.imp.setupapi.dll_SetupDiGetClassDevsW]
sub esp, 0x10
mov dword [ebp - 0x2cc], eax
add eax, 1
je 0x40a929
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea ebx, [esi + 0x18]
mov dword [esp], ebx
mov dword [ebp - 0x2f0], eax
call eax
xor ecx, ecx
push eax
mov edx, dword [esi + 0x10]
lea eax, [esi + 0x10]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2e0], 0x20
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2f4], esi
mov dword [ebp - 0x2f8], ebx
mov eax, dword [ebp - 0x2e4]
cmp edx, eax
je 0x40a4d8
cmp dword [edx + 0x38], 2
jbe 0x40a3f4
cmp dword [ebp - 0x2cc], 0xffffffff
je 0x40a49d
lea edi, [ebp - 0x2ac]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2d8], edx
lea esi, [ebp - 0x2b0]
mov ecx, 6
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.setupapi.dll_SetupDiEnumDeviceInfo]
mov dword [ebp - 0x2b0], 0x1c
jmp 0x40a36c
add ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x40a497
xor eax, eax
mov dword [esp + 0x14], 0x208
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.setupapi.dll_SetupDiGetDeviceRegistryPropertyW]
sub esp, 0x1c
test eax, eax
je 0x40a369
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x40a369
mov edx, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x2d0]
lea esi, [eax + 1]
mov eax, dword [ebp - 0x2e0]
cmp esi, eax
jb 0x40a446
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2d8], edx
lea ebx, [eax + eax]
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x2d8]
test eax, eax
je 0x40a4d8
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2d4], eax
lock add dword [edx + 0xc], 1
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x2d0]
mov dword [eax + ecx*4], edx
mov edx, dword [edx]
mov dword [ebp - 0x2d0], esi
jmp 0x40a315
mov eax, dword [0x411020]
mov edi, ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4099a5
mov eax, dword [ebp - 0x2c8]
mov dword [esp], 0x40dc60
mov dword [esp + 4], eax
call fcn.00405de0
jmp 0x409efa
mov edx, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x2d0]
jmp 0x40a45a
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 0xc], str.services.exe_exited_with_code__ld_n
mov dword [esp + 8], str.main
mov dword [esp + 4], 0x40b070
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.00405f10
jmp 0x40a24f
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor edi, edi
mov ebx, dword [ebp - 0x2f8]
mov esi, dword [ebp - 0x2f4]
mov dword [esp], ebx
xor ebx, ebx
mov dword [ebp - 0x2d8], eax
call eax
push eax
mov dword [esp + 0xc], 0x405a90
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call fcn.00406de0
mov dword [ebp - 0x2e0], esi
jmp 0x40a552
test byte [0x40b070], 8
jne 0x40a596
mov eax, dword [ebp - 0x2d4]
mov dword [eax + edi*4], esi
add edi, 1
add ebx, 1
cmp dword [ebp - 0x2d0], ebx
je 0x40a5cb
mov eax, dword [ebp - 0x2d4]
mov esi, dword [eax + ebx*4]
cmp dword [esi + 0x7c], 0
jne 0x40a53a
xor eax, eax
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call fcn.00407e30
test eax, eax
je 0x40a58c
test byte [0x40b070], 1
jne 0x40a896
mov dword [esp], esi
call fcn.00406d10
jmp 0x40a54f
mov eax, dword [esi + 0x10]
call fcn.00405e40
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 fcn.00405f10
jmp 0x40a543
mov esi, dword [ebp - 0x2e0]
xor ebx, ebx
mov eax, 1
lock cmpxchg dword [esi + 4], ebx
test edi, edi
je 0x40a913
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x4110d4], eax
test eax, eax
je 0x40a8d9
mov dword [ebp - 0x2d0], eax
mov dword [esp], 8
mov eax, dword [ebp - 0x2e8]
call eax
mov edx, dword [ebp - 0x2d0]
test eax, eax
mov esi, eax
je 0x40a913
mov dword [eax], edi
mov eax, dword [ebp - 0x2d4]
mov ecx, 7
lea edi, [ebp - 0x21c]
mov dword [esi + 4], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x218], edx
mov eax, 0xffffd8f0
mul dword [0x40b064]
mov dword [ebp - 0x220], 1
sub edx, dword [0x40b064]
mov dword [ebp - 0x214], 0x406d90
movd xmm0, eax
mov eax, dword [ebp - 0x2c8]
movd xmm5, edx
punpckldq xmm0, xmm5
movq qword [ebp - 0x2b0], xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 0x408460
call dword [sym.imp.kernel32.dll_CreateThreadpoolTimer]
sub esp, 0xc
test eax, eax
je 0x40a97d
xor edx, edx
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
lea edx, [ebp - 0x2b0]
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_SetThreadpoolTimer]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x10
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
push eax
xor eax, eax
mov dword [esp + 8], 0x406ac0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebp - 0x2dc]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push edx
mov dword [esp + 4], 0xffffffff
mov eax, dword [section..bss]
mov dword [esp], eax
mov dword [ebp - 0x2cc], edi
call edi
xor eax, eax
push ecx
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [0x4110d8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_PostQueuedCompletionStatus]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 4], 0xffffffff
call edi
push eax
push eax
mov edi, dword [0x411020]
mov eax, dword [ebp - 0x2c8]
lea esi, [edi + 0x18]
movd xmm0, eax
punpckldq xmm0, xmm0
movq qword [ebp - 0x220], xmm0
mov dword [esp], esi
mov eax, dword [ebp - 0x2f0]
call eax
lea ecx, [edi + 8]
movd xmm0, ecx
punpckldq xmm0, xmm0
push eax
mov eax, dword [edi + 8]
cmp ecx, eax
je 0x40a96c
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2d4], ebx
mov dword [edx], eax
mov edx, dword [ebp - 0x21c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2c8]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x21c], eax
mov dword [eax], edx
movq qword [edi + 8], xmm0
jmp 0x40a838
test ebx, ebx
je 0x40a848
lock add dword [ebx + 0xc], 1
mov dword [esp], ebx
call fcn.00406ef0
mov dword [esp], esi
mov eax, dword [ebp - 0x2d8]
call eax
push eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x2cc]
call eax
push eax
push eax
mov dword [esp], esi
mov eax, dword [ebp - 0x2f0]
call eax
push eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2d0]
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [edi + 0xc], ebx
mov dword [esp], ebx
call fcn.00406970
mov ebx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x2c8]
cmp ebx, eax
jne 0x40a7d0
mov ebx, dword [ebp - 0x2d4]
mov dword [esp], esi
mov eax, dword [ebp - 0x2d8]
call eax
push esi
mov eax, dword [0x4110d4]
test eax, eax
je 0x40a88c
xor edx, edx
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroupMembers]
mov eax, dword [0x4110d4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolCleanupGroup]
push ecx
call fcn.004059a0
jmp 0x40a203
mov dword [ebp - 0x2e4], eax
mov eax, dword [esi + 0x10]
call fcn.00405e40
mov ecx, dword [ebp - 0x2e4]
mov dword [esp + 0xc], str.Auto_start_service__s_failed_to_start:__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_autostart_services
mov dword [esp + 4], 0x40b070
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp], ecx
call fcn.00405f10
jmp 0x40a58c
test byte [0x40b070], 2
je 0x40a913
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 + 4], 0x40b070
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00405f10
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call ebx
jmp 0x40a6c2
test byte [0x40b070], 2
je 0x40a2d7
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 + 4], 0x40b070
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00405f10
jmp 0x40a2d7
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2d4], ebx
jmp 0x40a838
test byte [0x40b070], 2
jne 0x40a993
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call ebx
jmp 0x40a919
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 + 4], 0x40b070
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.00405f10
jmp 0x40a986
mov eax, edx
mov dword [ebp - 0x2cc], edx
call fcn.00405e40
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 fcn.00405f10
movzx eax, byte [0x40b070]
mov edx, dword [ebp - 0x2cc]
jmp 0x40a197
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2f0], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2d8], eax
jmp 0x40a6d2
mov ebx, 0x46a
mov edi, ebx
jmp 0x4099a5
test cl, cl
je 0x40aa7a
mov eax, dword [ebx + 0x64]
mov edx, 0x40df74
cmp word [eax], 0
mov eax, str._none_
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x40b070
mov dword [esp], 3
cmovne eax, edx
mov dword [esp + 0x10], eax
call fcn.00405f10
mov edx, dword [ebx + 0x64]
mov eax, edi
mov edi, ebx
mov ebx, edx
mov edx, eax
cmp word [ebx], 0
je 0x40aae3
test byte [0x40b070], 8
jne 0x40aaa6
mov eax, ebx
jmp 0x40aa9b
add eax, 2
cmp word [eax], 0
jne 0x40aa98
lea ebx, [eax + 2]
jmp 0x40aa85
mov eax, ebx
mov dword [ebp - 0x2cc], edx
call fcn.00405e40
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 fcn.00405f10
mov edx, dword [ebp - 0x2cc]
jmp 0x40aa94
mov eax, dword [ebp - 0x2bc]
mov ebx, edi
mov edi, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
cmp dword [ebx + 0x34], 0
jne 0x40ab42
test byte [0x40b070], 8
je 0x409e51
mov eax, dword [ebp - 0x2c8]
call fcn.00405e40
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 fcn.00405f10
jmp 0x409e51
mov dword [esp], ebx
call fcn.00406480
test eax, eax
jne 0x40ab93
test byte [0x40b070], 2
je 0x409e51
mov eax, dword [ebp - 0x2c8]
call fcn.00405e40
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 fcn.00405f10
jmp 0x409e51
mov eax, dword [ebx + 0x34]
mov dword [ebx + 8], esi
mov dword [ebx + 0x14], eax
lea eax, [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [esi + 0x14], ebx
mov dword [esp], ebx
call fcn.00406d10
jmp 0x409d4c
mov eax, dword [ebx + 0x40]
call fcn.00405e40
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 fcn.00405f10
movzx eax, byte [0x40b070]
test al, 8
je 0x40a179
mov eax, dword [ebx + 0x44]
call fcn.00405e40
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 fcn.00405f10
movzx eax, byte [0x40b070]
test al, 8
je 0x40a179
mov eax, dword [ebx + 0x50]
call fcn.00405e40
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 fcn.00405f10
movzx eax, byte [0x40b070]
test al, 8
je 0x40a179
mov eax, dword [ebx + 0x54]
call fcn.00405e40
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 fcn.00405f10
movzx eax, byte [0x40b070]
test al, 8
je 0x40a179
mov eax, dword [ebx + 0x60]
mov edx, 0x40df74
cmp word [eax], 0
mov eax, str._none_
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x40b070
mov dword [esp], 3
cmovne eax, edx
mov dword [esp + 0x10], eax
call fcn.00405f10
movzx eax, byte [0x40b070]
jmp 0x40a179