Function at 0x1009b5f
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x10099e8
mov ecx, 0x80070057
mov dword [ebp - 4], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c25
test byte [eax + 0x1c], 1
je 0x1009c25
push ecx
push 0x10017fc
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1009c25
lea eax, [ebp - 8]
push eax
push 0x800
push dword [ebp + 8]
call fcn.01009769
mov dword [ebp - 4], eax
test eax, eax
jge 0x1009a26
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c25
test byte [eax + 0x1c], 1
je 0x1009c25
push dword [ebp - 4]
push 0x10017fc
push 0x4d
jmp 0x10099d8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
mov ebx, 0x892
push ebx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x1009a82
mov ecx, 0x8007000e
mov dword [ebp - 4], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c0a
test byte [eax + 0x1c], 1
je 0x1009c0a
push ecx
push 0x10017fc
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1009c0a
push edi
mov edi, 0x1001868
push edi
lea eax, [esi + 0x78]
push 0x18
push eax
mov dword [esi], ebx
mov dword [esi + 0x2c], 0x20000
mov dword [esi + 0x70], CompareFileTime
call fcn.01008dbd
mov dword [ebp - 4], eax
test eax, eax
jge 0x1009ad4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c09
test byte [eax + 0x1c], 1
je 0x1009c09
push dword [ebp - 4]
push 0x10017fc
push 0x4f
jmp 0x1009bf9
push 3
push esi
push edi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ControlTraceW]
test eax, eax
je 0x1009b22
jle 0x1009af2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x1009b22
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c09
test byte [eax + 0x1c], 1
je 0x1009c09
push dword [ebp - 4]
push 0x10017fc
push 0x50
jmp 0x1009bf9
push ebx
push 0
push esi
call fcn.01010f7a
add esp, 0xc
push edi
push 0x18
lea eax, [esi + 0x78]
push eax
mov dword [esi], ebx
mov dword [esi + 0x2c], 0x20000
mov dword [esi + 0x70], CompareFileTime
mov dword [esi + 0x6c], 0x90
call fcn.01008dbd
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1009b80
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c09
test byte [eax + 0x1c], 1
je 0x1009c09
push dword [ebp - 4]
push 0x10017fc
push 0x51
jmp 0x1009bf9
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x6c]
add ecx, 2
add eax, esi
push ecx
push eax
call fcn.01008dbd
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1009bba
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c09
test byte [eax + 0x1c], 1
je 0x1009c09
push dword [ebp - 4]
push 0x10017fc
push 0x52
jmp 0x1009bf9
push 2
push esi
push edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlTraceW]
cmp eax, ebx
je 0x1009c06
jle 0x1009bd6
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1009c06
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c09
test byte [eax + 0x1c], 1
je 0x1009c09
push dword [ebp - 4]
push 0x10017fc
push RtlGUIDFromString
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x1009c09
mov dword [ebp - 4], ebx
pop edi
test esi, esi
je 0x1009c23
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4