Function at 0x1001f3f
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1004028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x10014fc
mov dword [ebp - 0x21c], eax
push edi
lea eax, [ebp - 0x214]
xor ebx, ebx
push eax
mov dword [ebp - 0x218], edi
xor esi, esi
mov dword [ebp - 0x214], ebx
call fcn.01002a1d
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x44
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x1001fbd
mov dword [ebp - 0x210], 0xe
jmp 0x1002193
push 0x44
push ebx
push esi
call fcn.01002dac
add esp, 0xc
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_InitializeSRWLock]
push edi
lea eax, [esi + 0xc]
push eax
mov dword [esi + 8], 1
call fcn.0100277d
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10014ec
push dword [ebp - 0x214]
call fcn.01002a8d
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x14]
push eax
call fcn.0100277d
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10014e4
push dword [ebp - 0x214]
call fcn.010025f8
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.010027d7
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10014dc
push dword [ebp - 0x214]
call fcn.010025f8
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.010027d7
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10014d4
push dword [ebp - 0x214]
call fcn.010025f8
mov dword [ebp - 0x210], eax
cmp eax, ebx
je 0x100210b
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10014cc
push dword [ebp - 0x214]
call fcn.010025f8
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.010027d7
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x1002193
push dword [ebp - 0x214]
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
call edi
push 0x10014bc
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
call fcn.01002a1d
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x10021f3
push ebx
lea eax, [esi + 0x10]
push eax
push ebx
push 0x10014ac
push dword [ebp - 0x214]
call fcn.0100282b
push dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
call edi
cmp dword [ebp - 0x210], ebx
je 0x10021f3
cmp dword [ebp - 0x210], 2
je 0x10021f3
mov dword [ebp - 0x214], ebx
mov eax, dword [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100219c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push 4
push eax
push 2
push 0x10011d0
call fcn.01002650
add esp, 0x18
cmp esi, ebx
je 0x10021d7
push esi
call fcn.01001ea3
cmp dword [ebp - 0x214], ebx
je 0x10021eb
push dword [ebp - 0x214]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
jmp 0x1002213
mov eax, dword [0x1004024]
mov dword [esi + 4], eax
mov dword [esi], 0x1004020
mov dword [eax], esi
mov eax, dword [ebp - 0x21c]
mov dword [0x1004024], esi
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002d96
leave
ret 8