Function at 0x47fa30
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46c9e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x40]
cmp edi, eax
mov dword [esp + 0x38], 0
jl 0x47fbe6
lea ebx, [edi + 1]
test ebx, ebx
jne 0x47faac
mov esi, dword [ebp + 4]
test esi, esi
je 0x47fa9f
mov ecx, eax
dec eax
test ecx, ecx
je 0x47fa8c
lea ebx, [eax + 1]
push 0
mov ecx, esi
call fcn.0047fcf0
add esi, 0x40
dec ebx
jne 0x47fa7d
mov eax, dword [ebp + 4]
push eax
call 0x4c5860
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x47fbe6
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x47fb0e
mov edi, ebx
shl edi, 6
push edi
call 0x4c5837
mov ecx, edi
mov esi, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [ebp + 4], esi
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esp + 0x10], esi
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x38], 1
je 0x47faf4
mov ecx, esi
call fcn.0047fc70
add esi, 0x40
dec edi
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], esi
jne 0x47fae0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x47fbe2
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x47fb4b
cmp eax, ebx
jge 0x47fb31
mov edx, ebx
sub edx, eax
shl eax, 6
push edx
add eax, ecx
push eax
call fcn.00470150
mov dword [ebp + 8], ebx
jmp 0x47fbe6
jle 0x47fb43
sub eax, ebx
push eax
mov eax, ebx
shl eax, 6
add eax, ecx
push eax
call fcn.0047fcc0
mov dword [ebp + 8], ebx
jmp 0x47fbe6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x47fb76
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x47fb69
mov ecx, 4
jmp 0x47fb76
cmp ecx, 0x400
jle 0x47fb76
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x47fb85
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
shl ecx, 6
push ecx
call 0x4c5837
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 6
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov edx, ebx
sub edx, ecx
add esp, 4
shl ecx, 6
push edx
add ecx, eax
push ecx
mov dword [esp + 0x1c], eax
call fcn.00470150
mov eax, dword [ebp + 4]
push eax
call 0x4c5860
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov edi, dword [esp + 0x40]
mov eax, dword [ebp + 4]
shl edi, 6
add edi, eax
lea edx, [esp + 0x44]
mov esi, edi
push edx
mov ecx, esi
call 0x4c4a9f
sub esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esp
push eax
call fcn.00474490
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 8]
call fcn.004744f0
sub esp, 0x18
lea edx, [esp + 0x7c]
mov ecx, esp
push edx
call fcn.00474490
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0x20]
call fcn.004744f0
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x38], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call 0x4c49b2
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x44