Function at 0x58d820
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9302
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x610684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.004ba4a0
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0
mov dword [edi], vtable._SLCoreService.0
call fcn.0058fe90
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
lea eax, [edi + 0x38]
mov dword [eax], 0
mov dword [ebp - 0x10], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
lea esi, [edi + 0x5c]
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0058f4c0
mov dword [esi], eax
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
lea esi, [edi + 0x7c]
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov ecx, esi
mov dword [edi + 0x78], 0
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0058f490
mov dword [esi], eax
lea esi, [edi + 0x88]
mov byte [edi + 0x84], 0
mov ecx, esi
mov byte [ebp - 4], 8
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0058f4f0
mov dword [esi], eax
lea ebx, [edi + 0xb0]
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x58d9c3
mov eax, dword [ebx]
jmp 0x58d9c5
mov eax, ebx
mov edx, dword [ebp + 8]
mov byte [eax], 0
cmp byte [edx], 0
jne 0x58d9d4
xor ecx, ecx
jmp 0x58d9e9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58d9e0
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.0044f570
lea esi, [edi + 0xc8]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0058f4f0
mov dword [esi], eax
lea eax, [edi + 0x198]
mov dword [edi + 0x194], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x58da3b
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [edi + 0x1b0]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x58da5a
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [edi + 0x1c8]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x58da79
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [edi + 0x1e0]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x58da98
mov eax, dword [eax]
mov byte [eax], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call fcn.00594770
push str.SLCore_2.0_Release__build_2.0.1.360321_
push str.Starting_up__s.
push 4
call fcn.0058f3e0
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
jb 0x58dac3
mov ebx, dword [ebx]
push ebx
mov ecx, edi
call fcn.0058f2c0
test al, al
lea eax, [edi + 0x2c]
push 0x94
cmovne eax, dword [ebp - 0x10]
mov dword [edi + 0x28], eax
lea eax, [edi + 0xd0]
push 0
push eax
call fcn.0054aa90
add esp, 0xc
mov dword [edi + 0x190], 0
cmp dword [0x618a10], 0
jne 0x58db2a
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push str.SyncSemaphore
push 1
push 1
push 0
call esi
push str.SlcoreSemaphore
push 1
push 1
push 0
mov dword [0x618a14], eax
call esi
mov dword [0x618a10], eax
lea esi, [edi + 0xac]
call fcn.00594800
push esi
lea ecx, [edi + 0x18]
mov byte [esi], al
call fcn.00592fc0
lea ecx, [ebp - 0x20]
call fcn.00594780
sub esp, 8
fstp qword [esp]
push str.Service_construction_took__.1f_ms_and_succeed.
push 4
call fcn.0058f3e0
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4