Function at 0x46bc70
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4cf6b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
push edi
push 0x10
lea ebp, [eax + 1]
call fcn.004bcb87
add esp, 4
mov dword [esp + 0x40], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x30], ecx
je 0x46bcb8
mov ecx, eax
call fcn.0046eae0
mov dword [esp + 0x10], eax
jmp 0x46bcbc
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
cmp ebp, ebx
jae 0x46bebf
mov edi, dword [esp + 0x38]
cmp byte [edi + ebp], 0x65
je 0x46bebf
push ebp
push ebx
push edi
call fcn.0046bf80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46bf57
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
test al, al
je 0x46bf57
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
add ebp, eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call dword [edx + 0x20]
mov edx, dword [esi]
push 1
mov ecx, esi
mov dword [esp + 0x34], 1
call dword [edx]
cmp ebp, ebx
jae 0x46bd66
push ebp
push ebx
push edi
call fcn.0046bf80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46bed6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
push esi
lea edx, [esp + 0x20]
sub esp, 0xc
add ebp, eax
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.0046c090
mov ecx, dword [esp + 0x20]
call fcn.0046fd80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x30], 0xffffffff
test ecx, ecx
je 0x46beb7
test eax, eax
je 0x46beb7
cmp eax, 0x80
jbe 0x46bd9d
push ecx
call fcn.00499a7e
add esp, 4
jmp 0x46beb7
add eax, 7
push 1
shr eax, 3
push 0x565dec
mov dword [esp + 0x20], ecx
lea eax, [eax*4 + 0x565da8]
mov dword [esp + 0x1c], eax
call fcn.00473000
add esp, 8
test eax, eax
je 0x46be9f
mov edi, dword [0x5204a4]
mov eax, dword [0x565da8]
mov dword [esp + 0x40], 0x11
xor esi, esi
test edi, edi
jbe 0x46be51
mov ebx, eax
shr ebx, 1
cmp esi, ebx
jb 0x46be0c
mov eax, dword [0x565dec]
test eax, eax
jne 0x46be0c
push 1
push 0x565dec
call fcn.00473000
add esp, 8
test eax, eax
je 0x46be8b
jmp 0x46be48
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x40]
imul ecx, edx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
imul eax, ecx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x40]
imul edx, eax
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x40]
imul ecx, edx
mov dword [esp + 0x40], ecx
inc esi
cmp esi, edi
jb 0x46bde6
mov ebx, dword [esp + 0x3c]
mov dword [0x5204a4], 0x1e
mov esi, 6
cmp esi, 0x1b
mov edi, esi
jle 0x46be6c
mov edi, 0x1b
push 1
push 0x565dec
call fcn.00473000
add esp, 8
test eax, eax
je 0x46be9f
push edi
call fcn.00473020
add esp, 4
inc esi
jmp 0x46be60
mov ebx, dword [esp + 0x3c]
mov dword [0x565da8], esi
mov dword [0x5204a4], 0x3e8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [eax], ecx
mov dword [0x565dec], 0
cmp ebp, ebx
jb 0x46bcd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x46bee4
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
sub eax, edi
test edi, edi
je 0x46bf42
test eax, eax
je 0x46bf42
cmp eax, 0x80
jbe 0x46bf1b
push edi
call fcn.00499a7e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
add eax, 7
mov ecx, 0x565dec
shr eax, 3
lea esi, [eax*4 + 0x565da8]
call fcn.0046b240
mov ecx, dword [esi]
mov dword [edi], ecx
mov dword [esi], edi
mov dword [0x565dec], 0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x46bf65
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret