Function at 0x10002a10
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x90
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x52], dx
cmp edx, 2
je 0x10002f54
mov dword [ebp - 0x4c], 0x1c
mov ecx, 0x48
cmp dx, 2
je 0x10002f7b
cmp dx, 0x17
mov eax, 0
mov edx, 0x100126d8
cmovne edx, eax
lea eax, [ebp - 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
mov dword [ebp - 0x68], eax
sub esp, 0x34
test eax, eax
jne 0x10002d61
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov edi, ecx
test eax, eax
je 0x10002d3e
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
and eax, 0x80
mov dword [ebp - 0x48], eax
mov esi, esi
lea edi, [edi]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x10002f44
lea esi, [esi]
mov edx, eax
mov eax, dword [eax + 8]
test eax, eax
jne 0x10002b08
lea eax, [edx + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x10002f34
nop
lea esi, [esi]
mov edx, eax
mov eax, dword [eax + 8]
test eax, eax
jne 0x10002b30
lea eax, [edx + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10002d2b
mov eax, dword fs:[0x18]
mov dword [ebp - 0x40], ecx
xor edi, edi
mov dword [ebp - 0x60], eax
jmp 0x10002b82
test byte [ebp - 0x44], 0x10
jne 0x10002cd8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
add edi, 1
cmp dword [ebp - 0x30], edi
jbe 0x10002d28
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 0x38]
mov ebx, eax
shl ebx, 4
add ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x3c], 2
lea esi, [ebx + eax*8]
lea eax, [ebx + 0x18]
lea edx, [esi + 0x28]
cmovne eax, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor edx, dword [ecx + 0xb0]
xor eax, dword [ecx + 0xb4]
or eax, edx
jne 0x10002b76
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10002b60
lea eax, [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov dword [ecx + eax], edx
add eax, 4
cmp eax, 0x1c
jb 0x10002bc9
cmp dword [ebp - 0x3c], 2
mov dword [ebp - 0x40], ecx
je 0x10002e30
mov eax, dword [0x100120e8]
lea edx, [esi + 0x38]
cmp dword [esi + 0x38], eax
je 0x10002d70
mov eax, dword [esi + 0x38]
movzx ecx, word [ebp - 0x52]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x3c]
mov word [ebp - 0x28], cx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
test cx, cx
je 0x10002da0
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
lea edx, [ecx + 0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
sub esp, 0xc
test eax, eax
je 0x10002f6a
mov eax, dword [ebp - 0x34]
lea edx, [eax + 0x18]
mov dword [eax], 0x18
mov ecx, eax
mov dword [ebp - 0x50], edx
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, dword [eax + edx - 4]
mov dword [ecx + edx - 4], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x64], esi
lea eax, [edx + 0x1c]
mov edx, ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x40], ebx
and eax, 0xfffffffc
sub edx, eax
mov dword [ebp - 0x50], eax
xor eax, eax
sub ecx, edx
add edx, dword [ebp - 0x4c]
and edx, 0xfffffffc
mov esi, dword [ecx + eax]
mov ebx, dword [ebp - 0x50]
mov dword [ebx + eax], esi
add eax, 4
cmp eax, edx
jb 0x10002ca6
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x64]
mov dword [ecx], eax
add eax, 8
mov dword [ebp - 0x58], eax
test byte [ebp - 0x44], 0x10
je 0x10002b6a
lea esi, [esi]
lea eax, [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov dword [ecx + eax], edx
add eax, 4
cmp eax, 0x1c
jb 0x10002ce5
cmp dword [ebp - 0x3c], 2
mov dword [ebp - 0x40], ecx
lea edx, [esi + 0x38]
je 0x10002e60
mov eax, dword [0x100120d8]
cmp dword [edx], eax
je 0x10002dd0
mov eax, dword [ebp - 0x2c]
add edi, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x30], edi
ja 0x10002b82
lea esi, [esi]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x10002af0
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._NsiFreeTable_16
sub esp, 0x10
mov eax, dword [ebp - 0x68]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x100120ec]
cmp dword [edx + 4], eax
jne 0x10002bf2
mov eax, dword [0x100120f0]
cmp dword [edx + 8], eax
jne 0x10002bf2
mov eax, dword [0x100120f4]
cmp dword [edx + 0xc], eax
jne 0x10002bf2
lea esi, [esi]
test byte [ebp - 0x44], 0x10
je 0x10002b70
mov ecx, dword [ebp - 0x40]
xor ebx, ebx
xor eax, eax
mov dword [ecx + eax], ebx
add eax, 4
cmp eax, 0x1c
jb 0x10002db1
mov dword [ebp - 0x40], ecx
mov eax, dword [0x100120d8]
cmp dword [edx], eax
jne 0x10002d0d
lea esi, [esi]
mov eax, dword [0x100120dc]
cmp dword [edx + 4], eax
jne 0x10002d0d
mov eax, dword [0x100120e0]
cmp dword [edx + 8], eax
jne 0x10002d0d
mov eax, dword [0x100120e4]
cmp dword [edx + 0xc], eax
jne 0x10002d0d
mov eax, dword [esi + 4]
movzx ebx, word [ebp - 0x52]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 8]
mov word [ebp - 0x28], bx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, byte [esi + 0x14]
mov dword [ebp - 0x50], eax
test bx, bx
jne 0x10002e81
jmp 0x10002d0d
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x10002f20
test byte [ebp - 0x44], 0x10
je 0x10002b70
mov ecx, dword [ebp - 0x40]
xor edx, edx
xor eax, eax
mov dword [ecx + eax], edx
add eax, 4
cmp eax, 0x1c
jb 0x10002e4c
mov dword [ebp - 0x40], ecx
lea esi, [esi]
mov edx, dword [ebx + 0x28]
test edx, edx
jne 0x10002d0d
mov eax, 2
mov word [ebp - 0x28], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebx + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 8
add eax, 0x18
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x10002f6a
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
lea ebx, [eax + 0x18]
mov dword [eax], 0x18
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], esi
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + esi - 4]
mov dword [ebp - 0x4c], esi
mov dword [eax + esi + 0x14], edx
lea esi, [eax + 0x1c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
and esi, 0xfffffffc
mov dword [ebp - 0x34], eax
sub ebx, esi
sub ecx, ebx
add ebx, dword [ebp - 0x4c]
and ebx, 0xfffffffc
mov eax, dword [ecx + edx]
mov dword [esi + edx], eax
add edx, 4
cmp edx, ebx
jb 0x10002ef0
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x50]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x5c]
mov dword [esi], eax
add eax, 8
mov dword [ebp - 0x5c], eax
jmp 0x10002d0d
mov eax, dword [ebx + 0x28]
mov ecx, 2
mov word [ebp - 0x28], cx
mov dword [ebp - 0x24], eax
jmp 0x10002c1b
mov eax, dword [ebp - 0x38]
add eax, 0x8c
mov dword [ebp - 0x5c], eax
jmp 0x10002b3f
mov eax, dword [ebp - 0x38]
add eax, 0xa4
mov dword [ebp - 0x58], eax
jmp 0x10002b17
mov dword [ebp - 0x4c], 0x10
mov ecx, 0x30
mov edx, 0x100126f0
jmp 0x10002a59
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x68], 8
mov edi, eax
jmp 0x10002d3e
mov edx, 0x100126f0
jmp 0x10002a59