Function at 0x6fb4bf6c
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov esi, dword [ecx]
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0x44], esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x40], edx
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x48], esi
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x3c], eax
test byte [0x6fb5e098], 8
jne 0x6fb4c270
mov dword [ebp - 0x4c], ecx
mov dword [esp], 0x6fb5e080
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x4c]
sub esp, 4
test ebx, ebx
je 0x6fb4bfcd
test byte [0x6fb5e098], 1
jne 0x6fb4c2d8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x6fb4bfda
mov dword [eax], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x6fb4bfe7
mov dword [eax], 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
call sym._preprocess_shader
mov ebx, eax
test eax, eax
js 0x6fb4c24c
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 4
mov edi, eax
lea eax, [eax + 1]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x6fb4c24c
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._memcpy
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
lea eax, [ebp - 0x28]
mov byte [esi + edi], 0
sub esp, 4
mov dword [ebp - 0x28], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SlAssembleShader
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x6fb4c192
test byte [0x6fb5e098], 8
jne 0x6fb4c310
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x6fb4c16b
mov edi, dword [eax]
test edi, edi
je 0x6fb4c3e8
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x48], eax
call eax
mov ebx, eax
test edi, edi
je 0x6fb4c0da
mov dword [esp], edi
mov eax, dword [ebp - 0x48]
call eax
add ebx, eax
inc ebx
lea eax, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [ebp - 0x20], ebx
call sym._D3DCreateBlob_8
sub esp, 8
mov ebx, eax
test eax, eax
js 0x6fb4c430
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 4
mov ebx, eax
test edi, edi
je 0x6fb4c133
mov eax, dword [ebp - 0x48]
mov dword [esp], edi
call eax
mov dword [esp], ebx
mov edx, eax
lea eax, [eax + 1]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [ebp - 0x4c], edx
call sym._memcpy
mov edx, dword [ebp - 0x4c]
add ebx, edx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x48]
mov dword [esp], edi
call eax
mov dword [esp + 4], edi
inc eax
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
je 0x6fb4c163
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x6fb4c46f
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._shader_write_bytecode
mov dword [esp], edi
mov ebx, eax
call sym._SlDeleteShader
test ebx, ebx
js 0x6fb4c482
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x6fb4c21a
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._D3DCreateBlob_8
sub esp, 8
mov ebx, eax
test eax, eax
js 0x6fb4c400
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], 0
xor ebx, ebx
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], 0x6fb5e080
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x20
mov eax, ecx
mov dword [ebp - 0x4c], ecx
call sym._wine_dbgstr_an.constprop.0_1
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.data__p__datasize__Iu__filename__s__defines__p__include__p__sflags__x__shader__p__error_messages__p._n
mov dword [esp + 8], str.D3DAssemble
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x4c]
jmp 0x6fb4bfa6
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.flags__x_n
mov dword [esp + 8], str.D3DAssemble
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x4c]
jmp 0x6fb4bfcd
mov dword [esp + 0xc], str.Assembler_messages:_n
mov dword [esp + 8], str.assemble_shader
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
test byte [0x6fb5e098], 8
je 0x6fb4c098
mov eax, dword [ebp - 0x28]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x6fb63b06
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.assemble_shader
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
test byte [0x6fb5e098], 8
je 0x6fb4c098
mov dword [esp + 0xc], str.Shader_source:_n
mov dword [esp + 8], str.assemble_shader
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
test byte [0x6fb5e098], 8
je 0x6fb4c098
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x6fb63b06
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.assemble_shader
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6fb4c098
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x48], eax
call eax
mov ebx, eax
jmp 0x6fb4c0da
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
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 0x6fb4c243
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x44]
sub esp, 0xc
test eax, eax
je 0x6fb4c243
mov dword [esp], eax
call sym._SlDeleteShader
jmp 0x6fb4c243
test byte [0x6fb5e098], 2
jne 0x6fb4c4bd
mov ebx, 0x88760b59
jmp 0x6fb4c243
test byte [0x6fb5e098], 2
je 0x6fb4c478
mov dword [esp + 0x10], ebx
mov ebx, 0x88760b59
mov dword [esp + 0xc], str.Failed_to_write_bytecode__hr__lx._n
mov dword [esp + 8], str.assemble_shader
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x6fb4c243
mov dword [esp + 0xc], str.Asm_reading_failed_n
mov dword [esp + 8], str.assemble_shader
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x6fb4c478