Function at 0x5917b8
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x5917c0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x591c4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0x78f4]
call fcn.0040f124
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x591c64
mov edx, 0x591c7c
mov eax, dword [esi + 0xe8]
mov ebx, dword [eax]
call dword [ebx]
xor edx, edx
xor eax, eax
call fcn.005621e4
mov dword [esi + 0x78f4], eax
cmp byte [esi + 0x78bc], 0
je 0x59197e
mov eax, dword [esi + 0xec]
mov ebx, dword [eax + 0xc]
dec ebx
test ebx, ebx
jl 0x591a75
inc ebx
xor edi, edi
lea eax, [edi + edi*2]
mov edx, dword [esi + 0xec]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4]
lea edx, [ebp - 0xc]
call fcn.00408fd8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404bfc
jne 0x591971
lea eax, [edi + edi*2]
mov edx, dword [esi + 0xec]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 8]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00408fd8
mov edx, dword [ebp - 0x10]
mov eax, 0x591c90
call fcn.00404df4
test eax, eax
jle 0x591931
mov dl, 1
mov eax, dword [0x510c00]
call fcn.00512ae4
mov ebx, eax
lea eax, [edi + edi*2]
mov edx, dword [esi + 0xec]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + eax*4 + 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, ebx
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x78f4]
mov byte [eax + 0x30], 1
mov eax, dword [esi + 0x78f4]
call fcn.0042e8c4
cmp al, 7
jne 0x5918f8
push 0x1fffffff
mov edx, 0x5917ac
mov ecx, 0xffff00ff
mov eax, dword [esi + 0x78f4]
call fcn.00557ebc
jmp 0x591928
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.0042f8c8
push 0xff00ff
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x78f4]
call fcn.005cc4ac
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, dword [esi + 0x78f4]
call fcn.0056a048
mov eax, ebx
call fcn.00403980
jmp 0x59194c
lea eax, [edi + edi*2]
mov edx, dword [esi + 0xec]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + eax*4 + 8]
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [esi + 0x78f4]
call fcn.0042e7d8
call fcn.00429ca0
mov eax, dword [esi + 0x78f4]
call fcn.0042e7d8
call fcn.004297b8
jmp 0x591a75
inc edi
dec ebx
jne 0x591830
jmp 0x591a75
mov edx, dword [ebp - 4]
mov eax, 0x591ca0
call fcn.00404df4
test eax, eax
jg 0x5919a0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x79fc]
call fcn.00404afc
cmp dword [ebp - 8], 0
je 0x591a75
mov eax, dword [ebp - 8]
call fcn.004099e8
test al, al
je 0x591a75
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00408fd8
mov edx, dword [ebp - 0x24]
mov eax, 0x591c90
call fcn.00404df4
test eax, eax
jle 0x591a67
mov dl, 1
mov eax, dword [0x510c00]
call fcn.00512ae4
mov ebx, eax
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, ebx
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [esi + 0x78f4]
mov byte [edi + 0x30], 1
mov eax, edi
call fcn.0042e8c4
cmp al, 7
jne 0x591a30
push 0x1fffffff
mov edx, 0x5917ac
mov ecx, 0xffff00ff
mov eax, dword [esi + 0x78f4]
call fcn.00557ebc
jmp 0x591a5e
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.0042f8c8
push 0xff00ff
lea edx, [ebp - 0x20]
mov edi, dword [esi + 0x78f4]
mov eax, edi
call fcn.005cc4ac
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, edi
call fcn.0056a048
mov eax, ebx
call fcn.00403980
pop ds
out 0xff, eax
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 0x4c]