Function at 0x10c558a
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 0x10c589d
dec eax
je 0x10c580e
dec eax
je 0x10c57db
dec eax
je 0x10c56b5
dec eax
je 0x10c567e
dec eax
je 0x10c5643
dec eax
je 0x10c560d
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 0x10c55fb
mov dword [ebp - 4], 0xc0000017
jmp 0x10c573d
push esi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10c5940
mov ecx, dword [ebp + 0x10]
test cl, 7
je 0x10c5621
mov dword [ebp - 4], 0xc0000024
jmp 0x10c5770
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 0x10c55ef
push dword [ebp + 0x10]
jmp 0x10c55fc
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 1
ja 0x10c5615
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 0x10c55ef
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
setne al
mov byte [ebx], al
jmp 0x10c5940
push 8
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x10c5615
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 0x10c55ef
mov esi, dword [ebp + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x10c5940
mov eax, dword [ebp + 0x10]
test al, 0xf
jne 0x10c5615
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 0x10c5712
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 0x10c5770
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 0x10c56da
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 0x10c577a
mov dword [ebp - 4], 0xc0000017
xor edi, edi
cmp ebx, edi
je 0x10c5755
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 0x10c5770
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 0x10c57ce
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 0x10c573b
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 0x10c578d
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ecx], ax
jmp 0x10c5935
cmp dword [ebp + 0x10], 0x10
jne 0x10c5615
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 0x10c5770
movzx eax, word [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp + 0x14], eax
jmp 0x10c5937
mov edx, dword [ebp + 0x10]
test dl, 1
jne 0x10c5615
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 1
mov byte [ebp + 0xb], 0
je 0x10c5837
cmp word [ecx], di
je 0x10c5833
inc ecx
inc ecx
dec eax
jne 0x10c5827
jmp 0x10c5837
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], 0
mov dword [ebp + 0x14], edx
jne 0x10c5857
lea eax, [ebp + 0x14]
push eax
push 2
push edx
call fcn.010c370e
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10c5770
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 0x10c55ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xb], 0
jne 0x10c5937
xor eax, eax
mov word [esi + ebx - 2], ax
jmp 0x10c5937
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.010c53bc
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10c5755
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 0x10c58dd
mov dword [ebp - 4], 0xc000000d
jmp 0x10c5755
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 0x10c55ef
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 0x10c573d
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 0x10c5770