Function at 0x1000f630
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [ecx], 0x40
mov dword [ebp - 0x10], ecx
je 0x1000f7a6
mov eax, dword [ecx + 4]
test eax, eax
je 0x1000f88a
cmp eax, 0xffffff
ja 0x1000f883
mov edx, eax
shl edx, 7
lea ecx, [edx - 1]
bsr ecx, ecx
xor ecx, 0x1f
neg cl
xor edi, edi
inc edi
shl edi, cl
sub edi, edx
xor ecx, ecx
cmp edi, 0x3f
seta cl
lea eax, [ecx + eax*2]
cmp eax, 0x3ffffff
ja 0x1000f883
mov dword [ebp - 0x1c], eax
shl eax, 6
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push eax
push 0
push dword [ecx + 0x18]
call sub.ntdll.dll_RtlAllocateHeap
test eax, eax
je 0x1000f883
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
test edi, edi
mov dword [ebp - 0x24], eax
jle 0x1000f7df
xor esi, esi
mov ecx, ebx
mov edx, eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ecx + 0x10]
mov dword [edx + 0x10], edi
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movsd xmm0, qword [ecx + 0x14]
movsd qword [edx + 0x14], xmm0
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], esi
movsd xmm0, qword [ecx + 0x1c]
movsd qword [edx + 0x1c], xmm0
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x1c], esi
mov edi, dword [ecx + 0x24]
mov dword [edx + 0x24], edi
mov edi, dword [ecx + 0x2c]
mov dword [edx + 0x2c], edi
mov edi, dword [ecx + 0x30]
mov dword [edx + 0x30], edi
mov edi, dword [ecx + 0x28]
cmp edi, 4
je 0x1000f7f0
mov dword [edx + 0x28], edi
mov dword [ecx + 0x28], 4
mov dword [ecx + 0x30], esi
mov dword [ecx + 0x2c], esi
mov bl, byte [ecx + 0x38]
mov byte [edx + 0x38], bl
mov edi, dword [ecx + 0x34]
mov dword [edx + 0x34], edi
add edx, 0x40
add ecx, 0x40
mov ebx, dword [eax]
mov edi, dword [eax + 4]
shl edi, 6
add edi, ebx
cmp ecx, edi
jb 0x1000f6c7
cmp ebx, edi
jae 0x1000f7ec
add ebx, 0x14
mov eax, dword [ebx + 0x14]
cmp eax, 4
jne 0x1000f841
cmp dword [ebx + 0xc], 0
jne 0x1000f85b
cmp dword [ebx + 4], 0
jne 0x1000f871
lea eax, [ebx + 0x40]
add ebx, 0x2c
cmp ebx, edi
mov ebx, eax
jb 0x1000f74c
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call sub.ntdll.dll_RtlFreeHeap
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
mov al, 1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x40
push 0
push dword [eax + 0x18]
call sub.ntdll.dll_RtlAllocateHeap
mov edi, eax
test eax, eax
je 0x1000f7d8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 4]
test ebx, ebx
jg 0x1000f892
mov dword [eax], edi
mov dword [eax + 8], 1
test edi, edi
setne al
jmp 0x1000f79e
shl edi, 6
add edi, ebx
mov eax, dword [ebp - 0x10]
jmp 0x1000f741
mov esi, eax
jmp 0x1000f77d
mov dword [edx + 0x28], 4
mov ebx, dword [ecx + 0x2c]
mov edi, ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
jle 0x1000f721
mov edi, dword [ecx + 0x28]
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ebx, [ebx + edi*4]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 4
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi]
mov edi, dword [ebp - 0x14]
mov dword [edi], ebx
mov ebx, dword [ebp - 0x18]
add ebx, 4
add dword [ebp - 0x14], 4
mov dword [ebp - 0x18], ebx
cmp ebx, dword [ebp - 0x20]
jb 0x1000f820
jmp 0x1000f721
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push eax
push 0
push dword [ecx + 0x18]
call sub.ntdll.dll_RtlFreeHeap
jmp 0x1000f758
lea eax, [ebx + 8]
push eax
call sub.ntdll.dll_RtlFreeUnicodeString
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x1000f762
push ebx
call sub.ntdll.dll_RtlFreeUnicodeString
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
jmp 0x1000f76c
xor eax, eax
jmp 0x1000f79e
xor eax, eax
inc eax
jmp 0x1000f688
mov esi, dword [eax]
shl ebx, 6
add ebx, esi
mov eax, edi
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov edx, esi
call fcn.10013e20
add esi, 0x40
mov eax, dword [ebp - 0x1c]
add eax, 0x40
cmp esi, ebx
jb 0x1000f89b
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
test esi, esi
jle 0x1000f7cf
mov ebx, dword [eax]
shl esi, 6
add esi, ebx
add ebx, 0x14
mov eax, dword [ebx + 0x14]
cmp eax, 4
je 0x1000f8e9
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push eax
push 0
push dword [ecx + 0x18]
call sub.ntdll.dll_RtlFreeHeap
cmp dword [ebx + 0xc], 0
je 0x1000f900
lea eax, [ebx + 8]
push eax
call sub.ntdll.dll_RtlFreeUnicodeString
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
cmp dword [ebx + 4], 0
je 0x1000f913
push ebx
call sub.ntdll.dll_RtlFreeUnicodeString
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
lea eax, [ebx + 0x40]
add ebx, 0x2c
cmp ebx, esi
mov ebx, eax
mov eax, dword [ebp - 0x10]
jae 0x1000f7cf
jmp 0x1000f8cc