Function at 0x408eb0
Capabilities:
Get process heap flags

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, 0x38
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov ebx, dword [0x41d020]
mov dword [ebp - 0x1c], eax
jmp 0x408ee8
mov dword [esp], 0xa
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebx + 4], edx
jne 0x408ed8
mov esi, eax
mov eax, dword [edi]
test eax, eax
jne 0x408f1b
jmp 0x408fe3
mov dword [esp], ebx
add esi, 1
call dbg.release_service
cmp esi, dword [edi]
jae 0x408fe3
mov eax, dword [edi + 4]
mov ebx, dword [eax + esi*4]
cmp dword [ebx + 0x18], 1
jne 0x408f08
test byte [global___dbch.0], 8
jne 0x409060
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dbg.service_start
mov edx, eax
test eax, eax
je 0x408f08
test byte [global___dbch.0], 1
je 0x408f08
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x409108
mov eax, ecx
mov dword [ebp - 0x20], edx
shr eax, 0x10
je 0x4090f0
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x24], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x20]
mov ecx, eax
sub esp, 8
mov eax, 0x41ac0d
test ecx, ecx
jne 0x408fa4
mov eax, dword [ebp - 0x24]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], edx
add esi, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Delayed_auto_start_service__s_failed_to_start:__ld_n
mov dword [esp + 8], global___FUNCTION__.65
mov dword [esp + 4], global___dbch.0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
mov dword [esp], ebx
call dbg.release_service
cmp esi, dword [edi]
jb 0x408f1b
mov edx, dword [0x41d020]
mov eax, 1
xor ecx, ecx
lock cmpxchg dword [edx + 4], ecx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword fs:[0x18]
mov eax, dword [edi + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseThreadpoolTimer]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x4090e0
mov eax, edx
shr eax, 0x10
je 0x4090c8
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x20], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x41ac0d
test ecx, ecx
jne 0x409098
mov eax, dword [ebp - 0x20]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Starting_delayed_auto_start_service__s_n
mov dword [esp + 8], global___FUNCTION__.65
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408f34
mov dword [esp + 4], edx
mov dword [esp], 0x41ac00
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x409098
mov eax, 0x41ac06
jmp 0x409098
mov dword [esp + 4], ecx
mov dword [esp], 0x41ac00
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, dword [ebp - 0x20]
jmp 0x408fa4
mov eax, 0x41ac06
jmp 0x408fa4