Function at 0x536670
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x536678
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x536b05
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0x78f4]
call fcn.0040ec2c
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x536b1c
mov edx, 0x536b34
mov eax, dword [esi + 0xe8]
mov ebx, dword [eax]
call dword [ebx]
xor edx, edx
xor eax, eax
call fcn.004d80a8
mov dword [esi + 0x78f4], eax
cmp byte [esi + 0x78bc], 0
je 0x536836
mov eax, dword [esi + 0xec]
mov ebx, dword [eax + 0xc]
dec ebx
test ebx, ebx
jl 0x53692d
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.00409024
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404f48
jne 0x536829
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.00409024
mov edx, dword [ebp - 0x10]
mov eax, 0x536b48
call fcn.00405140
test eax, eax
jle 0x5367e9
mov dl, 1
mov eax, dword [0x489d00]
call fcn.0048bb7c
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.00428ad4
cmp al, 7
jne 0x5367b0
push 0x1fffffff
mov edx, 0x536664
mov ecx, 0xffff00ff
mov eax, dword [esi + 0x78f4]
call fcn.004cdf10
jmp 0x5367e0
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.004299f8
push 0xff00ff
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x78f4]
call fcn.00528fb4
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, dword [esi + 0x78f4]
call fcn.004e3b38
mov eax, ebx
call fcn.00403d0c
jmp 0x536804
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.004289e8
call fcn.0042451c
mov eax, dword [esi + 0x78f4]
call fcn.004289e8
call fcn.0042406c
jmp 0x53692d
inc edi
dec ebx
jne 0x5366e8
jmp 0x53692d
mov edx, dword [ebp - 4]
mov eax, 0x536b58
call fcn.00405140
test eax, eax
jg 0x536858
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x79fc]
call fcn.00404e48
cmp dword [ebp - 8], 0
je 0x53692d
mov eax, dword [ebp - 8]
call fcn.00409b74
test al, al
je 0x53692d
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00409024
mov edx, dword [ebp - 0x24]
mov eax, 0x536b48
call fcn.00405140
test eax, eax
jle 0x53691f
mov dl, 1
mov eax, dword [0x489d00]
call fcn.0048bb7c
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.00428ad4
cmp al, 7
jne 0x5368e8
push 0x1fffffff
mov edx, 0x536664
mov ecx, 0xffff00ff
mov eax, dword [esi + 0x78f4]
call fcn.004cdf10
jmp 0x536916
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.004299f8
push 0xff00ff
lea edx, [ebp - 0x20]
mov edi, dword [esi + 0x78f4]
mov eax, edi
call fcn.00528fb4
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, edi
call fcn.004e3b38
mov eax, ebx
call fcn.00403d0c
jmp 0x53692d
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [esi + 0x78f4]
call fcn.00428ad4
cmp al, 7
je 0x53696a
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.004299f8
push 0xff00ff
lea edx, [ebp - 0x20]
mov ebx, dword [esi + 0x78f4]
mov eax, ebx
call fcn.00528fb4
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, ebx
call fcn.004e3b38
mov dl, 1
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0xff00ff
mov eax, dword [esi + 0x78f4]
call fcn.00429b60
xor edx, edx
mov eax, dword [esi + 0x78f4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
lea ebx, [esi + 0x79e8]
push 0
lea eax, [ebp - 0x28]
push eax
mov edx, 0x536b34
mov ecx, 0x536b64
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
call fcn.00404b90
push 0
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x536b34
mov ecx, 0x536b74
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x1c]
call fcn.00404b90
push 0
lea eax, [ebp - 0x30]
push eax
mov edx, 0x536b34
mov ecx, 0x536b88
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x18]
call fcn.00404b90
push 0
mov edx, 0x536b34
mov ecx, 0x536b9c
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
test eax, eax
setne al
mov byte [ebx + 1], al
push 0xffffffffffffffce
mov edx, 0x536b34
mov ecx, 0x536bb0
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x38], eax
push 0x32
mov edx, 0x536b34
mov ecx, 0x536bc4
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x3c], eax
push 0
mov edx, 0x536b34
mov ecx, 0x536bd8
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
push 0
mov edx, 0x536b34
mov ecx, 0x536bec
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x34], eax
push 0
mov edx, 0x536b34
mov ecx, 0x536c00
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x24], eax
push 0
mov edx, 0x536b34
mov ecx, 0x536c18
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov byte [ebx + 0x2c], al
mov eax, dword [esi + 0xe8]
call fcn.00532d30
fstp qword [esi + 0x79f0]
wait
mov eax, esi
call fcn.0053a8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536b0c
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404b60
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b60
ret