Function at 0x10c527a
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 0x10c558d
dec eax
je 0x10c54fe
dec eax
je 0x10c54cb
dec eax
je 0x10c53a5
dec eax
je 0x10c536e
dec eax
je 0x10c5333
dec eax
je 0x10c52fd
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 0x10c52eb
mov dword [ebp - 4], 0xc0000017
jmp 0x10c542d
push esi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10c5630
mov ecx, dword [ebp + 0x10]
test cl, 7
je 0x10c5311
mov dword [ebp - 4], 0xc0000024
jmp 0x10c5460
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 0x10c52df
push dword [ebp + 0x10]
jmp 0x10c52ec
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 1
ja 0x10c5305
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 0x10c52df
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
setne al
mov byte [ebx], al
jmp 0x10c5630
push 8
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x10c5305
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 0x10c52df
mov esi, dword [ebp + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x10c5630
mov eax, dword [ebp + 0x10]
test al, 0xf
jne 0x10c5305
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 0x10c5402
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 0x10c5460
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 0x10c53ca
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 0x10c546a
mov dword [ebp - 4], 0xc0000017
xor edi, edi
cmp ebx, edi
je 0x10c5445
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 0x10c5460
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 0x10c54be
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 0x10c542b
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 0x10c547d
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ecx], ax
jmp 0x10c5625
cmp dword [ebp + 0x10], 0x10
jne 0x10c5305
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 0x10c5460
movzx eax, word [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp + 0x14], eax
jmp 0x10c5627
mov edx, dword [ebp + 0x10]
test dl, 1
jne 0x10c5305
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 1
mov byte [ebp + 0xb], 0
je 0x10c5527
cmp word [ecx], di
je 0x10c5523
inc ecx
inc ecx
dec eax
jne 0x10c5517
jmp 0x10c5527
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], 0
mov dword [ebp + 0x14], edx
jne 0x10c5547
lea eax, [ebp + 0x14]
push eax
push 2
push edx
call fcn.010c33fe
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10c5460
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 0x10c52df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xb], 0
jne 0x10c5627
xor eax, eax
mov word [esi + ebx - 2], ax
jmp 0x10c5627
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.010c50ac
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10c5445
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 0x10c55cd
mov dword [ebp - 4], 0xc000000d
jmp 0x10c5445
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 0x10c52df
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 0x10c542d
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 0x10c5460