Function at 0x524908
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x524910
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x524d9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0x78f4]
call fcn.0040f078
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x524db4
mov edx, 0x524dcc
mov eax, dword [esi + 0xe8]
mov ebx, dword [eax]
call dword [ebx]
xor edx, edx
xor eax, eax
call fcn.004ee570
mov dword [esi + 0x78f4], eax
cmp byte [esi + 0x78bc], 0
je 0x524ace
mov eax, dword [esi + 0xec]
mov ebx, dword [eax + 0xc]
dec ebx
test ebx, ebx
jl 0x524bc5
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.00409294
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004050f4
jne 0x524ac1
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.00409294
mov edx, dword [ebp - 0x10]
mov eax, 0x524de0
call fcn.004052ec
test eax, eax
jle 0x524a81
mov dl, 1
mov eax, dword [0x49b834]
call fcn.0049d6b0
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.00429330
cmp al, 7
jne 0x524a48
push 0x1fffffff
mov edx, 0x5248fc
mov ecx, 0xffff00ff
mov eax, dword [esi + 0x78f4]
call fcn.004e3ba0
jmp 0x524a78
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.0042a254
push 0xff00ff
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x78f4]
call fcn.0051724c
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, dword [esi + 0x78f4]
call fcn.004fc238
mov eax, ebx
call fcn.00403eb8
jmp 0x524a9c
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.00429244
call fcn.00424a50
mov eax, dword [esi + 0x78f4]
call fcn.00429244
call fcn.00424544
jmp 0x524bc5
inc edi
dec ebx
jne 0x524980
jmp 0x524bc5
mov edx, dword [ebp - 4]
mov eax, 0x524df0
call fcn.004052ec
test eax, eax
jg 0x524af0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x79fc]
call fcn.00404ff4
cmp dword [ebp - 8], 0
je 0x524bc5
mov eax, dword [ebp - 8]
call fcn.00409de4
test al, al
je 0x524bc5
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00409294
mov edx, dword [ebp - 0x24]
mov eax, 0x524de0
call fcn.004052ec
test eax, eax
jle 0x524bb7
mov dl, 1
mov eax, dword [0x49b834]
call fcn.0049d6b0
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.00429330
cmp al, 7
jne 0x524b80
push 0x1fffffff
mov edx, 0x5248fc
mov ecx, 0xffff00ff
mov eax, dword [esi + 0x78f4]
call fcn.004e3ba0
jmp 0x524bae
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.0042a254
push 0xff00ff
lea edx, [ebp - 0x20]
mov edi, dword [esi + 0x78f4]
mov eax, edi
call fcn.0051724c
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, edi
call fcn.004fc238
mov eax, ebx
call fcn.00403eb8
jmp 0x524bc5
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.00429330
cmp al, 7
je 0x524c02
mov dl, 7
mov eax, dword [esi + 0x78f4]
call fcn.0042a254
push 0xff00ff
lea edx, [ebp - 0x20]
mov ebx, dword [esi + 0x78f4]
mov eax, ebx
call fcn.0051724c
lea edx, [ebp - 0x20]
mov cl, 0xff
mov eax, ebx
call fcn.004fc238
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.0042a3bc
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, 0x524dcc
mov ecx, 0x524dfc
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
call fcn.00404d3c
push 0
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x524dcc
mov ecx, 0x524e0c
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x1c]
call fcn.00404d3c
push 0
lea eax, [ebp - 0x30]
push eax
mov edx, 0x524dcc
mov ecx, 0x524e20
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x18]
call fcn.00404d3c
push 0
mov edx, 0x524dcc
mov ecx, 0x524e34
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, 0x524dcc
mov ecx, 0x524e48
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x38], eax
push 0x32
mov edx, 0x524dcc
mov ecx, 0x524e5c
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x3c], eax
push 0
mov edx, 0x524dcc
mov ecx, 0x524e70
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
push 0
mov edx, 0x524dcc
mov ecx, 0x524e84
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x34], eax
push 0
mov edx, 0x524dcc
mov ecx, 0x524e98
mov eax, dword [esi + 0xe8]
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x24], eax
push 0
mov edx, 0x524dcc
mov ecx, 0x524eb0
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.00520fc8
fstp qword [esi + 0x79f0]
wait
mov eax, esi
call fcn.00529040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524da4
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404d0c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404d0c
ret