Function at 0x6a0cac60
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x6a0cb03d
mov dword [esp + 8], 0x70
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov dword [ebp - 0x1c], eax
sub esp, 0xc
test eax, eax
je 0x6a0cb0b5
mov esi, dword [ebx]
mov eax, 0x6a0e2c64
mov ecx, 1
xor edx, edx
jmp 0x6a0caccc
inc edx
add eax, 0xc
cmp edx, 0xd
je 0x6a0cacf8
mov ecx, dword [eax - 4]
cmp esi, ecx
jne 0x6a0cacc0
movzx ecx, byte [eax]
cmp byte [ebx + 4], cl
jne 0x6a0cacc0
movzx ecx, byte [eax + 1]
cmp byte [ebx + 5], cl
jne 0x6a0cacc0
lea eax, [edx + edx*2]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x6a0e2c68]
mov dword [ecx], eax
jmp 0x6a0cacfd
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x6a0cb003
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov dword [ebp - 0x20], eax
sub esp, 0xc
test eax, eax
je 0x6a0caf6a
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0
mov eax, dword [ebx]
cmp eax, 1
je 0x6a0caf83
cmp eax, 2
jne 0x6a0cae50
movzx edx, word [ebx + 4]
rol dx, 8
or edx, 0xffff0000
mov esi, dword [ebp - 0x20]
mov eax, esi
call sym._put_u32
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax]
mov esi, dword [edi + 8]
test esi, esi
js 0x6a0cae92
mov eax, dword [ebx + 0x44]
xor edi, edi
test eax, eax
je 0x6a0cae05
nop
mov eax, dword [ebx + 0x40]
mov esi, dword [eax + edi*4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
cmp edx, 0x55
je 0x6a0caf18
mov ecx, dword [esi]
jmp 0x6a0cadcf
mov edx, dword [eax + 8]
add eax, 8
cmp edx, 0x55
je 0x6a0caf18
cmp ecx, edx
jne 0x6a0cadc0
mov eax, dword [eax + 4]
test eax, eax
je 0x6a0cafbf
mov dword [esp + 4], esi
mov ecx, dword [ebp - 0x20]
inc edi
mov esi, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp], esi
call eax
cmp dword [ebx + 0x44], edi
ja 0x6a0cada0
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 8]
test esi, esi
js 0x6a0cae92
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov eax, dword [edi]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax + 4]
mov esi, dword [esi + 0xc]
test esi, esi
js 0x6a0cae92
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
xor esi, esi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
shl eax, 2
mov dword [edx], eax
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [edi], eax
xor eax, eax
jmp 0x6a0caea0
xor edx, edx
test byte [0x6a0de048], 2
je 0x6a0cad6f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_shader_type__x._n
mov dword [esp + 8], str.sm1_version
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 1
mov dword [ebp - 0x24], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x24]
jmp 0x6a0cad6f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
lea esi, [esi]
nop
mov dword [esp + 8], eax
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6a0de048], 1
jne 0x6a0caf30
mov eax, dword [ebp - 0x20]
mov esi, 0x80070057
mov eax, dword [eax]
jmp 0x6a0caea0
mov eax, dword [esi]
mov dword [esp], eax
call sym._debug_print_opcode
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0xc], str.Unhandled_instruction__u____s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.call_instr_handler
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6a0caf21
test byte [0x6a0de048], 4
jne 0x6a0caf99
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, 0x80004005
jmp 0x6a0caee4
movzx edx, word [ebx + 4]
rol dx, 8
movzx edx, dx
or edx, 0xfffe0000
jmp 0x6a0cad6f
mov dword [esp + 0xc], str.Failed_to_allocate_a_buffer_for_the_shader_bytecode_n
mov dword [esp + 8], str.shader_write_bytecode
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6a0caf73
test byte [0x6a0de048], 4
je 0x6a0caf21
mov dword [esp + 0x10], ecx
mov esi, 0x80070057
mov dword [esp + 0xc], str.Opcode__u_not_supported_by_this_profile._n
mov dword [esp + 8], str.call_instr_handler
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
jmp 0x6a0caea0
test byte [0x6a0de048], 1
jne 0x6a0cb078
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov esi, 0x80004001
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6a0caf07
mov esi, 0x80004005
test byte [0x6a0de048], 2
je 0x6a0caf07
mov dword [esp + 0xc], str.NULL_shader_structure__aborting_n
mov dword [esp + 8], str.shader_write_bytecode
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x6a0caf07
movzx eax, byte [ebx + 5]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Unsupported_shader_type__x__version__u._u._n
mov dword [esp + 8], str.shader_write_bytecode
mov dword [esp + 4], 0x6a0de048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6a0cb00c
mov esi, 0x8007000e
jmp 0x6a0caf07