Function at 0x4a1e00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aec3d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x40
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x30]
mov ecx, dword [ecx + eax*8 + 4]
mov eax, dword [edi + 0x24]
mov dword [ebp + 0xc], ecx
mov ebx, dword [eax + ecx*4]
mov dword [ebp - 0x1c], ebx
call fcn.00587dd8
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], vtable.CClusterInStream.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
push esi
mov dword [ebp - 0x24], esi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4a1eaa
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4a1eb7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
je 0x4a1eea
cmp dword [ebx + 0x54], 0
mov eax, dword [edi + 0x3c]
ja 0x4a1eea
jb 0x4a1ee1
cmp dword [ebx + 0x50], eax
jae 0x4a1eea
mov edx, dword [edi + 0x44]
mov byte [ebp + 0xb], 0
jmp 0x4a1ef1
mov edx, dword [edi + 0x40]
mov byte [ebp + 0xb], 1
mov dword [esi + 0x1c], edx
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov dword [esi + 0x20], eax
mov eax, 1
mov dword [esi + 0x24], ecx
mov ecx, edx
shl eax, cl
mov dword [ebp + 0xc], edx
xor edx, edx
mov dword [ebp - 0x18], eax
add eax, dword [ebx + 0x50]
adc edx, dword [ebx + 0x54]
add eax, 0xffffffff
adc edx, 0xffffffff
call fcn.005a80a0
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x4a215b
cmp eax, 0x80000000
jae 0x4a215b
mov dword [esi + 0x30], edx
cmp eax, dword [esi + 0x34]
jbe 0x4a1f85
cmp eax, 0x7fffffff
ja 0x4a219d
push dword [esi + 0x2c]
call fcn.00588148
mov eax, dword [ebp + 0xc]
mov ecx, 4
mul ecx
mov ecx, 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0
cmovb eax, ecx
push eax
call fcn.0058813f
mov dword [esi + 0x2c], eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx + 0x64]
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [ebp - 0x14], eax
or eax, ecx
mov dword [ebp - 0x1c], ecx
je 0x4a20a6
nop
cmp byte [ebp + 0xb], 0
je 0x4a1fc6
cmp ebx, dword [edi + 0x18]
jae 0x4a2058
mov edx, dword [esi + 0x30]
lea ecx, [ebx + 1]
lea eax, [edx + 1]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + edx*4], ecx
mov eax, dword [edi + 0x14]
jmp 0x4a2032
cmp ebx, dword [edi + 0x20]
jae 0x4a207f
mov ecx, dword [edi + 0x40]
mov edx, ebx
sub ecx, dword [edi + 0x44]
shr edx, cl
mov dword [ebp - 0x24], ecx
cmp edx, dword [edi + 0xc]
jae 0x4a207f
mov eax, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
xor edx, edx
add eax, 1
adc edx, edx
call fcn.005a8080
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0xc]
dec eax
and eax, ebx
add ecx, eax
mov dword [ebp + 0xc], ecx
adc edx, 0
cmp edx, 1
ja 0x4a207f
jb 0x4a201d
test ecx, ecx
jae 0x4a207f
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + ecx*4], edx
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [eax + ebx*4]
test edx, edx
jb 0x4a20a6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
ja 0x4a2048
cmp ecx, eax
jbe 0x4a20a6
sub ecx, eax
mov dword [ebp - 0x14], ecx
sbb edx, 0
mov dword [ebp - 0x1c], edx
jmp 0x4a1fa0
mov byte [ebp - 4], 4
test esi, esi
je 0x4a20b9
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp - 4], 5
test esi, esi
je 0x4a20b9
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0xfffffffe
je 0x4a20d2
mov byte [ebp - 4], 6
test esi, esi
je 0x4a20b9
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x30], 0
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov dword [esi + 0x18], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
jbe 0x4a2140
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
mov edx, dword [eax]
xor eax, eax
shl edx, cl
mov ecx, esi
add edx, edi
mov dword [esi + 0x10], edx
adc eax, ebx
mov dword [esi + 0x14], eax
call fcn.0049fca0
mov edi, eax
test edi, edi
je 0x4a2140
mov byte [ebp - 4], 7
test esi, esi
je 0x4a212a
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp - 4], 3
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 0x80004001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x5f79a8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x7e5
push eax
call fcn.0058acc1
int3