Function at 0x6298ac00
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 0x6298afdd
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 0x6298b055
mov esi, dword [ebx]
mov eax, 0x629a2c64
mov ecx, 1
xor edx, edx
jmp 0x6298ac6c
inc edx
add eax, 0xc
cmp edx, 0xd
je 0x6298ac98
mov ecx, dword [eax - 4]
cmp esi, ecx
jne 0x6298ac60
movzx ecx, byte [eax]
cmp byte [ebx + 4], cl
jne 0x6298ac60
movzx ecx, byte [eax + 1]
cmp byte [ebx + 5], cl
jne 0x6298ac60
lea eax, [edx + edx*2]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x629a2c68]
mov dword [ecx], eax
jmp 0x6298ac9d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x6298afa3
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 0x6298af0a
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0
mov eax, dword [ebx]
cmp eax, 1
je 0x6298af23
cmp eax, 2
jne 0x6298adf0
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 0x6298ae32
mov eax, dword [ebx + 0x44]
xor edi, edi
test eax, eax
je 0x6298ada5
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 0x6298aeb8
mov ecx, dword [esi]
jmp 0x6298ad6f
mov edx, dword [eax + 8]
add eax, 8
cmp edx, 0x55
je 0x6298aeb8
cmp ecx, edx
jne 0x6298ad60
mov eax, dword [eax + 4]
test eax, eax
je 0x6298af5f
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 0x6298ad40
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 8]
test esi, esi
js 0x6298ae32
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 0x6298ae32
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 0x6298ae40
xor edx, edx
test byte [0x6299e048], 2
je 0x6298ad0f
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], 0x6299e048
mov dword [esp], 1
mov dword [ebp - 0x24], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x24]
jmp 0x6298ad0f
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 [0x6299e048], 1
jne 0x6298aed0
mov eax, dword [ebp - 0x20]
mov esi, 0x80070057
mov eax, dword [eax]
jmp 0x6298ae40
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], 0x6299e048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6298aec1
test byte [0x6299e048], 4
jne 0x6298af39
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, 0x80004005
jmp 0x6298ae84
movzx edx, word [ebx + 4]
rol dx, 8
movzx edx, dx
or edx, 0xfffe0000
jmp 0x6298ad0f
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], 0x6299e048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6298af13
test byte [0x6299e048], 4
je 0x6298aec1
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], 0x6299e048
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
jmp 0x6298ae40
test byte [0x6299e048], 1
jne 0x6298b018
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 0x6298aea7
mov esi, 0x80004005
test byte [0x6299e048], 2
je 0x6298aea7
mov dword [esp + 0xc], str.NULL_shader_structure__aborting_n
mov dword [esp + 8], str.shader_write_bytecode
mov dword [esp + 4], 0x6299e048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x6298aea7
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], 0x6299e048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6298afac
mov esi, 0x8007000e
jmp 0x6298aea7