Function at 0x495500
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
lea edi, [esi + 0x110]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x4a9b90
mov ecx, dword fs:[0]
mov dword [edi], ecx
mov dword fs:[0], edi
mov dl, 0xff
lea ebx, [esi + 0x30]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea ecx, [esi + 0x17]
mov byte [ecx], dl
mov al, 0xff
lea edx, [esi + 0x16]
mov byte [edx], al
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x40]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
push edx
push ecx
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00498fe0
add esp, 0x14
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.004aae6a
cmp byte [esi + 0x23], 0
lea eax, [esi + 0x18]
jns 0x495599
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.005dfe70
add esp, 0xc
lea eax, [esi + 0x24]
mov dword [eax], edi
lea eax, [esi + 0x2c]
mov dword [eax], 0
lea eax, [esi + 0xb]
mov byte [eax], 1
lea eax, [esi + 0x15]
mov byte [eax], 0x45
lea ecx, [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.00441d50
test al, al
jne 0x495708
mov eax, dword [esi + 0x28]
movzx edx, byte [esi + 0x23]
test dl, dl
jns 0x4955f3
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 0xc]
lea ecx, [ebx + edx]
cmp eax, ecx
jne 0x495644
mov dword [esi + 0xc], edx
lea eax, [edx + edx]
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.004aae6a
mov eax, dword [esi + 0x20]
mov ecx, SysReAllocString
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.004aae6a
cmp byte [esi + 0x23], 0
lea ebx, [esi + 0x18]
jns 0x49563c
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ebx
mov dword [esi + 0x28], eax
mov cl, byte [esi + 0x16]
mov dl, byte [esi + 0x17]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
mov dword [esi + 0xc], ebx
je 0x49565d
movzx eax, byte [eax]
jmp 0x495691
mov byte [esi + 0x13], dl
mov byte [esi + 0x14], cl
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x118], 0
mov ecx, edi
call ebx
mov ebx, dword [esi + 0xc]
mov cl, byte [esi + 0x14]
mov dl, byte [esi + 0x13]
movsx ecx, cl
movsx edx, dl
movsx eax, al
lea edi, [esi + 0x40]
push edi
lea edi, [esi + 0x2c]
push edi
lea edi, [esi + 0x24]
push edi
lea edi, [esi + 0x68]
push edi
lea edi, [esi + 0x30]
push edi
push ecx
push edx
lea ecx, [esi + 0x28]
push ecx
push ebx
lea ecx, [esi + 0x15]
push ecx
lea ecx, [esi + 0xb]
push ecx
push eax
call fcn.00499146
add esp, 0x30
test eax, eax
jne 0x495708
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4956de
inc eax
mov dword [edi + 0xc], eax
jmp 0x4955d1
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x118], 0
mov ecx, edi
call ebx
jmp 0x4955d1
mov edi, dword [esi + 0xc]
movzx eax, byte [esi + 0x3b]
test al, al
jns 0x495716
mov eax, dword [esi + 0x34]
test eax, eax
je 0x49573d
cmp byte [esi + 0xb], 0
je 0x49573d
mov eax, dword [esi + 0x24]
mov ecx, eax
lea edx, [esi + 0x68]
sub ecx, edx
cmp ecx, 0x9f
jg 0x49573d
mov ecx, dword [esi + 0x2c]
lea edx, [eax + 4]
mov dword [esi + 0x24], edx
mov dword [eax], ecx
push dword [ebp + 0x18]
push dword [esi + 0x28]
push edi
call fcn.004a98ec
add esp, 0xc
fstp dword [esi + 0x3c]
movd xmm0, dword [esi + 0x3c]
mov eax, dword [ebp + 0x1c]
movd dword [eax], xmm0
push dword [ebp + 0x18]
push dword [esi + 0x24]
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.004a0d3c
add esp, 0x10
lea ecx, [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.00441d50
test al, al
je 0x495787
mov eax, dword [ebp + 0x18]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp byte [esi + 0x23], 0
jns 0x4957a0
push dword [esi + 0x18]
call fcn.005dc756
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x4957b1
push dword [esi + 0x30]
call fcn.005dc756
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