Function at 0x1001d63
Capabilities:
Get process heap force flags

Disassembly:
push 0x20
push 0x1001e30
call fcn.010015a0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], ecx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov eax, dword [0x1040184]
mov esi, 0x1040184
mov edi, dword [ebp + 0xc]
cmp eax, esi
je 0x1001da9
test byte [eax + 0x1c], 2
je 0x1001da9
cmp byte [eax + 0x19], 5
jae 0x102301b
push ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1023033
mov eax, dword [ebx + 0x20]
lea eax, [eax + edi*4]
inc dword [eax]
cmp dword [ebp + 0x14], 0
jne 0x1001dd5
lea eax, [ebp - 0x30]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
test byte [eax + 4], 2
jne 0x1015660
mov eax, edi
shl eax, 4
mov edi, dword [ebx + 0x24]
add edi, eax
mov esi, dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x24]
and dword [eax + ecx + 0xc], 0
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1001e17
test byte [eax + 0x1c], 2
je 0x1001e17
cmp byte [eax + 0x19], 5
jae 0x102310a
mov dword [ebp - 4], 0xfffffffe
call fcn.01001e51
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 0x10
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1015679
test byte [eax + 0x1c], 2
je 0x1015679
cmp byte [eax + 0x19], 5
jae 0x1023077
mov eax, dword [ebx + 0x20]
cmp dword [eax + edi*4], 1
je 0x1001de2
jmp 0x1023095
push edi
push 0x1027a40
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1001da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1001e17
test byte [eax + 0x1c], 2
je 0x1001e17
cmp byte [eax + 0x19], 2
jb 0x1001e17
push dword [ebp - 0x1c]
push 0x1027a40
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1001e17
mov ecx, dword [ebx + 0x20]
push dword [ecx + edi*4]
push edi
push 0x1027a40
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
jmp 0x1015679
shl edi, 4
add edi, dword [ebx + 0x24]
push edi
call fcn.01039090
mov dword [ebp + 8], eax
mov eax, dword fs:[0x18]
push 0x10
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x10230f2
push 0xe
pop ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1001e17
test byte [eax + 0x1c], 2
je 0x1001e17
cmp byte [eax + 0x19], 2
jb 0x1001e17
push ecx
push 0x1027a40
push 0x13
jmp 0x1023067
mov esi, dword [ebp + 0x14]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
jmp 0x1001dfb
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
push dword [edx + ecx*4]
push ecx
push 0x1027a40
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
jmp 0x1001e17