Function at 0x6554ac00
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 0x6554afdd
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 0x6554b055
mov esi, dword [ebx]
mov eax, 0x65562c64
mov ecx, 1
xor edx, edx
jmp 0x6554ac6c
inc edx
add eax, 0xc
cmp edx, 0xd
je 0x6554ac98
mov ecx, dword [eax - 4]
cmp esi, ecx
jne 0x6554ac60
movzx ecx, byte [eax]
cmp byte [ebx + 4], cl
jne 0x6554ac60
movzx ecx, byte [eax + 1]
cmp byte [ebx + 5], cl
jne 0x6554ac60
lea eax, [edx + edx*2]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x65562c68]
mov dword [ecx], eax
jmp 0x6554ac9d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x6554afa3
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 0x6554af0a
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0
mov eax, dword [ebx]
cmp eax, 1
je 0x6554af23
cmp eax, 2
jne 0x6554adf0
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 0x6554ae32
mov eax, dword [ebx + 0x44]
xor edi, edi
test eax, eax
je 0x6554ada5
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 0x6554aeb8
mov ecx, dword [esi]
jmp 0x6554ad6f
mov edx, dword [eax + 8]
add eax, 8
cmp edx, 0x55
je 0x6554aeb8
cmp ecx, edx
jne 0x6554ad60
mov eax, dword [eax + 4]
test eax, eax
je 0x6554af5f
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 0x6554ad40
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 8]
test esi, esi
js 0x6554ae32
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 0x6554ae32
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 0x6554ae40
xor edx, edx
test byte [0x6555e048], 2
je 0x6554ad0f
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], 0x6555e048
mov dword [esp], 1
mov dword [ebp - 0x24], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x24]
jmp 0x6554ad0f
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 [0x6555e048], 1
jne 0x6554aed0
mov eax, dword [ebp - 0x20]
mov esi, 0x80070057
mov eax, dword [eax]
jmp 0x6554ae40
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], 0x6555e048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6554aec1
test byte [0x6555e048], 4
jne 0x6554af39
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, 0x80004005
jmp 0x6554ae84
movzx edx, word [ebx + 4]
rol dx, 8
movzx edx, dx
or edx, 0xfffe0000
jmp 0x6554ad0f
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], 0x6555e048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6554af13
test byte [0x6555e048], 4
je 0x6554aec1
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], 0x6555e048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
jmp 0x6554ae40
test byte [0x6555e048], 1
jne 0x6554b018
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 0x6554aea7
mov esi, 0x80004005
test byte [0x6555e048], 2
je 0x6554aea7
mov dword [esp + 0xc], str.NULL_shader_structure__aborting_n
mov dword [esp + 8], str.shader_write_bytecode
mov dword [esp + 4], 0x6555e048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x6554aea7
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], 0x6555e048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6554afac
mov esi, 0x8007000e
jmp 0x6554aea7