Function at 0x58a814
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x58a81c
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58ad9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0xa098
call fcn.004126f4
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov ecx, 0x58adb0
mov edx, 0x58adc8
mov ebx, dword [eax]
call dword [ebx]
xor edx, edx
xor eax, eax
call fcn.0056f8e0
mov edx, dword [ebp - 4]
mov dword [edx + 0xa098], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa060], 0
je 0x58aa2f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
mov esi, dword [eax + 0xc]
dec esi
test esi, esi
jl 0x58ab62
inc esi
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x10]
lea ebx, [ebx + ebx*2]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0x18]
call fcn.0040be2c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00405c48
jne 0x58aa20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ebx*4 + 8]
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040be2c
mov edx, dword [ebp - 0x1c]
mov eax, 0x58addc
call fcn.00405e40
test eax, eax
jle 0x58a9d7
mov dl, 1
mov eax, dword [0x4d9378]
call fcn.004db2b0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x58a9d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + ebx*4 + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xa098]
mov byte [ebx + 0x30], 1
mov eax, ebx
call fcn.00438354
cmp al, 7
jne 0x58a984
push 0x1fffffff
mov edx, 0x58a808
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov ecx, 0xffff00ff
call fcn.00563784
jmp 0x58a9ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov dl, 7
call fcn.00439258
push 0xff00ff
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xa098]
mov eax, ebx
call fcn.0057b430
lea edx, [ebp - 0x2c]
mov eax, ebx
mov cl, 0xff
call fcn.004baa68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58a9f5
mov eax, dword [ebp - 0x14]
call fcn.004048a4
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + ebx*4 + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
call fcn.00438268
call fcn.00433af0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
call fcn.00438268
call fcn.0043358c
jmp 0x58ab62
inc dword [ebp - 0x10]
dec esi
jne 0x58a8a0
jmp 0x58ab62
mov edx, dword [ebp - 8]
mov eax, 0x58adec
call fcn.00405e40
test eax, eax
jg 0x58aa54
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa19c]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00405b48
cmp dword [ebp - 0xc], 0
je 0x58ab62
mov eax, dword [ebp - 0xc]
call fcn.0040ce18
test al, al
je 0x58ab62
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0040be2c
mov edx, dword [ebp - 0x30]
mov eax, 0x58addc
call fcn.00405e40
test eax, eax
jle 0x58ab51
mov dl, 1
mov eax, dword [0x4d9378]
call fcn.004db2b0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x58ab4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xa098]
mov byte [ebx + 0x30], 1
mov eax, ebx
call fcn.00438354
cmp al, 7
jne 0x58aafe
push 0x1fffffff
mov edx, 0x58a808
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov ecx, 0xffff00ff
call fcn.00563784
jmp 0x58ab34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov dl, 7
call fcn.00439258
push 0xff00ff
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xa098]
mov eax, ebx
call fcn.0057b430
lea edx, [ebp - 0x2c]
mov eax, ebx
mov cl, 0xff
call fcn.004baa68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ab62
mov eax, dword [ebp - 0x14]
call fcn.004048a4
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
call fcn.00438354
cmp al, 7
je 0x58abaa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov dl, 7
call fcn.00439258
push 0xff00ff
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xa098]
mov eax, ebx
call fcn.0057b430
lea edx, [ebp - 0x2c]
mov eax, ebx
mov cl, 0xff
call fcn.004baa68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
mov edx, 0xff00ff
call fcn.004393c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa098]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov eax, dword [ebp - 4]
lea ebx, [eax + 0xa188]
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58adf8
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x10]
call fcn.00405874
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae08
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x1c]
call fcn.00405874
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae1c
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x18]
call fcn.00405874
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae30
mov esi, dword [eax]
call dword [esi + 8]
test eax, eax
setne al
mov byte [ebx + 1], al
push 0xffffffffffffffce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae44
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x3c], eax
push 0x32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae58
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x40], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae6c
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x34], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae80
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x38], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58ae94
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x24], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58aeac
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x28], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, 0x58adc8
mov ecx, 0x58aec0
mov esi, dword [eax]
call dword [esi + 8]
mov byte [ebx + 0x30], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
call fcn.0058670c
fstp qword [ebx + 8]
wait
mov eax, dword [ebp - 4]
call fcn.0058ef9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ada1
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00405844
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405844
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405844
ret