Function at 0x101a2dc
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 0x101a5ef
dec eax
je 0x101a560
dec eax
je 0x101a52d
dec eax
je 0x101a407
dec eax
je 0x101a3d0
dec eax
je 0x101a395
dec eax
je 0x101a35f
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 0x101a34d
mov dword [ebp - 4], 0xc0000017
jmp 0x101a48f
push esi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x101a692
mov ecx, dword [ebp + 0x10]
test cl, 7
je 0x101a373
mov dword [ebp - 4], 0xc0000024
jmp 0x101a4c2
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 0x101a341
push dword [ebp + 0x10]
jmp 0x101a34e
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 1
ja 0x101a367
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 0x101a341
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
setne al
mov byte [ebx], al
jmp 0x101a692
push 8
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x101a367
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 0x101a341
mov esi, dword [ebp + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x101a692
mov eax, dword [ebp + 0x10]
test al, 0xf
jne 0x101a367
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 0x101a464
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 0x101a4c2
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 0x101a42c
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 0x101a4cc
mov dword [ebp - 4], 0xc0000017
xor edi, edi
cmp ebx, edi
je 0x101a4a7
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 0x101a4c2
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 0x101a520
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 0x101a48d
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 0x101a4df
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ecx], ax
jmp 0x101a687
cmp dword [ebp + 0x10], 0x10
jne 0x101a367
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 0x101a4c2
movzx eax, word [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp + 0x14], eax
jmp 0x101a689
mov edx, dword [ebp + 0x10]
test dl, 1
jne 0x101a367
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 1
mov byte [ebp + 0xb], 0
je 0x101a589
cmp word [ecx], di
je 0x101a585
inc ecx
inc ecx
dec eax
jne 0x101a579
jmp 0x101a589
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], 0
mov dword [ebp + 0x14], edx
jne 0x101a5a9
lea eax, [ebp + 0x14]
push eax
push 2
push edx
call fcn.01017dd4
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x101a4c2
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 0x101a341
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xb], 0
jne 0x101a689
xor eax, eax
mov word [esi + ebx - 2], ax
jmp 0x101a689
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0101a10e
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x101a4a7
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 0x101a62f
mov dword [ebp - 4], 0xc000000d
jmp 0x101a4a7
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 0x101a341
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 0x101a48f
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 0x101a4c2