Function at 0x1012e820
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov esi, esp
mov dword [esi + 0x108], ebp
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x110]
mov dword [edi - 4], esp
xor ebx, ebx
dec ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], 0x101402d0
mov edx, dword fs:[0]
mov dword [edi], edx
mov edx, dword [ebp + 0xc]
mov dword fs:[0], edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x3c], eax
mov dl, 0xff
lea ecx, [esi + 0x30]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
lea eax, [esi + 0xb]
mov byte [eax], dl
lea ebx, [esi + 0x13]
mov byte [ebx], dl
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x40]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edx, dword [ebp + 0x14]
push ebx
lea ebx, [esi + 0xb]
push ebx
push eax
call fcn.10131860
add esp, 0xc
xor eax, eax
lea ecx, [esi + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [edi + 8], eax
push eax
push 0xa
call fcn.101412ec
cmp byte [esi + 0x23], 0
lea eax, [esi + 0x18]
jns 0x1012e8c5
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x28]
mov dword [esi + 0xc], eax
mov dword [ecx], eax
lea edi, [esi + 0x68]
push 0xa0
push 0xff
push edi
call fcn.10208980
add esp, 0xc
lea eax, [esi + 0x24]
mov dword [eax], edi
lea eax, [esi + 0x2c]
mov dword [eax], 0
lea eax, [esi + 0xa]
mov byte [eax], 1
lea eax, [esi + 0x12]
mov byte [eax], 0x45
mov al, byte [esi + 0x13]
mov byte [esi + 0x11], al
mov al, byte [esi + 0xb]
mov byte [esi + 0x10], al
lea ecx, [esi + 0x14]
lea eax, [esi + 0x3c]
push eax
call fcn.1002ebde
test al, al
jne 0x1012e9ee
mov eax, dword [esi + 0x28]
movzx ebx, byte [esi + 0x23]
test bl, bl
jns 0x1012e92b
mov ebx, dword [esi + 0x1c]
mov edx, dword [esi + 0xc]
lea ecx, [edx + ebx]
cmp eax, ecx
jne 0x1012e97c
mov dword [esi + 0xc], ebx
lea eax, [ebx + ebx]
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.101412ec
mov eax, dword [esi + 0x20]
mov ecx, 0x7fffffff
and eax, ecx
dec eax
cmp byte [esi + 0x23], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.101412ec
cmp byte [esi + 0x23], 0
lea edx, [esi + 0x18]
jns 0x1012e974
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [esi + 0x28], eax
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1012e98f
movzx eax, byte [eax]
jmp 0x1012e994
mov eax, dword [ecx]
call dword [eax + 0x20]
movsx edi, byte [esi + 0x11]
movsx ebx, byte [esi + 0x10]
movsx ecx, al
lea edx, [esi + 0xa]
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x30]
push eax
push edi
push ebx
lea eax, [esi + 0x28]
push eax
mov edi, dword [esi + 0xc]
push edi
lea eax, [esi + 0x12]
push eax
call fcn.10131944
add esp, 0x28
test eax, eax
jne 0x1012e9f1
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1012e9e4
inc eax
mov dword [ecx + 0xc], eax
jmp 0x1012e909
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x1012e909
mov edi, dword [esi + 0xc]
movzx eax, byte [esi + 0x3b]
test al, al
jns 0x1012e9fc
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1012ea23
cmp byte [esi + 0xa], 0
je 0x1012ea23
mov eax, dword [esi + 0x24]
mov ecx, eax
lea edx, [esi + 0x68]
sub ecx, edx
cmp ecx, 0x9f
jg 0x1012ea23
mov ecx, dword [esi + 0x2c]
lea edx, [eax + 4]
mov dword [esi + 0x24], edx
mov dword [eax], ecx
mov edx, dword [esi + 0x28]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.1013fee2
add esp, 4
mov eax, dword [ebp + 0x1c]
movq qword [eax], xmm0
lea ecx, [esi + 0x30]
lea edx, [esi + 0x68]
push dword [ebp + 0x18]
push dword [esi + 0x24]
call fcn.10138cf2
add esp, 8
lea ecx, [esi + 0x14]
lea eax, [esi + 0x3c]
push eax
call fcn.1002ebde
test al, al
je 0x1012ea64
mov eax, dword [ebp + 0x18]
or byte [eax], 2
mov eax, dword [esi + 0x14]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp byte [esi + 0x23], 0
jns 0x1012ea7d
push dword [esi + 0x18]
call fcn.10205096
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x1012ea8e
push dword [esi + 0x30]
call fcn.10205096
add esp, 4
mov eax, dword [esi + 0x110]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18