Function at 0x10689ac
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 0x1068cbf
dec eax
je 0x1068c30
dec eax
je 0x1068bfd
dec eax
je 0x1068ad7
dec eax
je 0x1068aa0
dec eax
je 0x1068a65
dec eax
je 0x1068a2f
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 0x1068a1d
mov dword [ebp - 4], 0xc0000017
jmp 0x1068b5f
push esi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1068d62
mov ecx, dword [ebp + 0x10]
test cl, 7
je 0x1068a43
mov dword [ebp - 4], 0xc0000024
jmp 0x1068b92
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 0x1068a11
push dword [ebp + 0x10]
jmp 0x1068a1e
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 1
ja 0x1068a37
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 0x1068a11
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
setne al
mov byte [ebx], al
jmp 0x1068d62
push 8
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x1068a37
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 0x1068a11
mov esi, dword [ebp + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x1068d62
mov eax, dword [ebp + 0x10]
test al, 0xf
jne 0x1068a37
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 0x1068b34
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 0x1068b92
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 0x1068afc
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 0x1068b9c
mov dword [ebp - 4], 0xc0000017
xor edi, edi
cmp ebx, edi
je 0x1068b77
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 0x1068b92
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 0x1068bf0
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 0x1068b5d
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 0x1068baf
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ecx], ax
jmp 0x1068d57
cmp dword [ebp + 0x10], 0x10
jne 0x1068a37
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 0x1068b92
movzx eax, word [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp + 0x14], eax
jmp 0x1068d59
mov edx, dword [ebp + 0x10]
test dl, 1
jne 0x1068a37
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 1
mov byte [ebp + 0xb], 0
je 0x1068c59
cmp word [ecx], di
je 0x1068c55
inc ecx
inc ecx
dec eax
jne 0x1068c49
jmp 0x1068c59
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], 0
mov dword [ebp + 0x14], edx
jne 0x1068c79
lea eax, [ebp + 0x14]
push eax
push 2
push edx
call fcn.01067112
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1068b92
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 0x1068a11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xb], 0
jne 0x1068d59
xor eax, eax
mov word [esi + ebx - 2], ax
jmp 0x1068d59
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.010687de
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1068b77
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 0x1068cff
mov dword [ebp - 4], 0xc000000d
jmp 0x1068b77
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 0x1068a11
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 0x1068b5f
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 0x1068b92