Function at 0x6fb4d26a
Capabilities:
Get file size
Get process heap flags
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1a8
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x14c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x150], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x154], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x15c], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x160], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x164], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x168], eax
test byte [0x6fb5e098], 8
jne 0x6fb4d440
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x6fb4d550
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
sub esp, 8
mov eax, dword fs:[0x18]
cmp edi, 0xffffffff
je 0x6fb4d3e8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x6fb4d7fe
lea eax, [ebp - 0x148]
mov dword [esp + 4], edx
mov dword [ebp - 0x16c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0x16c]
sub esp, 0x14
test eax, eax
je 0x6fb4d3a4
cmp dword [ebp - 0x148], edi
je 0x6fb4d580
mov ebx, 0x80004005
test byte [0x6fb5e098], 4
je 0x6fb4d3fa
mov dword [esp + 0xc], str.Failed_to_read_file_contents._n
mov dword [esp + 8], str.D3DCompileFromFile
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 2
mov dword [ebp - 0x14c], edx
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x14c]
jmp 0x6fb4d3fa
mov ebx, dword [eax + 0x34]
xor edx, edx
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
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.kernel32.dll_CloseHandle]
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 0x24
mov eax, dword [ebp - 0x158]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x154]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [ebp - 0x16c], eax
test ebx, ebx
je 0x6fb4d7d0
mov eax, ebx
shr eax, 0x10
je 0x6fb4d650
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x6fb639ad
test ecx, ecx
jne 0x6fb4d663
movzx eax, word [ebx]
test ax, ax
je 0x6fb4d7e0
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6fb4d4a8
mov ecx, 0x224c
mov dword [ebp - 0x174], ebx
mov esi, ebx
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x6fb4d51b
cmp ax, 9
je 0x6fb4d6e0
cmp ax, 0xa
jne 0x6fb4d716
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [ebp - 0x22]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x6fb4d788
test edx, edx
jle 0x6fb4d788
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x6fb4d6f8
jbe 0x6fb4d4d8
cmp ax, 0x22
je 0x6fb4d770
cmp ax, 0x5c
jne 0x6fb4d709
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6fb4d500
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
lea esp, [ebp - 0x10]
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x16c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x16c]
lea ecx, [ebp - 0x144]
sub esp, 0x20
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x164]
mov dword [esp], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 8], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x15c]
mov dword [esp + 4], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x154]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], edx
mov dword [esp + 0xc], eax
call sym.d3dcompiler_38.dll_D3DCompileFromMemory
mov edx, dword [ebp - 0x14c]
sub esp, 0x2c
mov ebx, eax
jmp 0x6fb4d3fa
movzx eax, bx
mov dword [esp], 0x6fb639a0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov esi, dword [ebp - 0x168]
mov edi, dword [ebp - 0x164]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.filename__s__defines__p__include__p__entrypoint__s__target__s__flags1__x__flags2__x__code__p__errors__p._n
mov dword [esp + 0x30], esi
mov esi, dword [ebp - 0x160]
mov dword [esp + 0x2c], edi
mov edi, dword [ebp - 0x15c]
mov dword [esp + 0x28], esi
mov esi, dword [ebp - 0x170]
mov dword [esp + 0x24], edi
mov edi, dword [ebp - 0x16c]
mov dword [esp + 0x20], esi
mov esi, dword [ebp - 0x150]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x14c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 8], str.D3DCompileFromFile
mov dword [esp + 4], 0x6fb5e098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6fb4d2ce
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6fb4d500
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6fb4d500
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6fb4d7c0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefd3dcompiler_include_from_file_open]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefd3dcompiler_include_from_file_open]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefd3dcompiler_include_from_file_open]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefd3dcompiler_include_from_file_open]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6fb4d500
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6fb4d500
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x174]
test edi, edi
jle 0x6fb4d7f9
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x6fb4d663
mov byte [ecx], al
inc ecx
jmp 0x6fb4d500
mov eax, 0x6fb639a6
jmp 0x6fb4d663
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x6fb4d7a5
mov ebx, 0x8007000e
jmp 0x6fb4d3fa