Function at 0x1006440
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
shr eax, 0x18
push esi
push edi
xor edi, edi
and eax, 0xf
dec eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x1006753
dec eax
je 0x10066c4
dec eax
je 0x1006691
dec eax
je 0x100656b
dec eax
je 0x1006534
dec eax
je 0x10064f9
dec eax
je 0x10064c3
mov esi, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
mov dword [ebp + 0x14], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
jne 0x10064b1
mov dword [ebp - 4], 0xc0000017
jmp 0x10065f3
push esi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10067f6
mov ecx, dword [ebp + 0x10]
test cl, 7
je 0x10064d7
mov dword [ebp - 4], 0xc0000024
jmp 0x1006626
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ecx
push edi
push dword [eax + 0x18]
mov dword [ebp + 0x14], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
je 0x10064a5
push dword [ebp + 0x10]
jmp 0x10064b2
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 1
ja 0x10064cb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 1
push edi
push dword [eax + 0x18]
mov dword [ebp + 0x14], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
je 0x10064a5
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
setne al
mov byte [ebx], al
jmp 0x10067f6
push 8
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x10064cb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ecx
push edi
push dword [eax + 0x18]
mov dword [ebp + 0x14], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
je 0x10064a5
mov esi, dword [ebp + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x10067f6
mov eax, dword [ebp + 0x10]
test al, 0xf
jne 0x10064cb
shr eax, 4
xor esi, esi
xor ebx, ebx
cmp eax, edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov dword [ebp - 0xc], eax
jbe 0x10065c8
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov dword [ebp - 4], eax
test eax, eax
jl 0x1006626
movzx eax, word [ebp - 0x14]
lea esi, [esi + eax + 2]
lea eax, [ebp - 0x14]
push eax
call edi
add dword [ebp + 0x10], 0x10
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x1006590
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
inc esi
inc esi
mov dword [ebp + 0x14], esi
push dword [ebp + 0x14]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x1006630
mov dword [ebp - 4], 0xc0000017
xor edi, edi
cmp ebx, edi
je 0x100660b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 8], edi
je 0x1006626
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18
and dword [ebp + 8], 0
cmp dword [ebp - 0xc], 0
mov dword [ebp + 0x10], ebx
jbe 0x1006684
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov dword [ebp - 4], eax
test eax, eax
jl 0x10065f1
movzx esi, word [ebp - 0x14]
inc esi
inc esi
push esi
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
add dword [ebp + 0x10], esi
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call edi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], 0x10
cmp eax, dword [ebp - 0xc]
jb 0x1006643
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ecx], ax
jmp 0x10067eb
cmp dword [ebp + 0x10], 0x10
jne 0x10064cb
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1006626
movzx eax, word [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp + 0x14], eax
jmp 0x10067ed
mov edx, dword [ebp + 0x10]
test dl, 1
jne 0x10064cb
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 1
mov byte [ebp + 0xb], 0
je 0x10066ed
cmp word [ecx], di
je 0x10066e9
inc ecx
inc ecx
dec eax
jne 0x10066dd
jmp 0x10066ed
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], 0
mov dword [ebp + 0x14], edx
jne 0x100670d
lea eax, [ebp + 0x14]
push eax
push 2
push edx
call fcn.010045c4
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1006626
mov eax, dword fs:[0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
je 0x10064a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xb], 0
jne 0x10067ed
xor eax, eax
mov word [esi + ebx - 2], ax
jmp 0x10067ed
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.01006272
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x100660b
mov eax, dword [ebp - 8]
add eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [eax]
add eax, 0x10
mov dword [ebp + 0x14], eax
cmp eax, 0x10
jae 0x1006793
mov dword [ebp - 4], 0xc000000d
jmp 0x100660b
mov eax, dword fs:[0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
je 0x10064a5
mov eax, dword [ebp + 0x10]
add esi, 4
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [eax]
lea eax, [ebx + 0x10]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push dword [ebp - 8]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebp - 8], 0
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x10065f3
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov dword [ebp - 4], edi
jmp 0x1006626