Function at 0x6a0cb8d0
Capabilities:
Get common file path
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, 0x158
mov edx, dword [ecx + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x12c], edx
mov edx, dword [ecx + 0x10]
mov esi, dword [eax + 4]
mov dword [ebp - 0x134], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x138], edx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strrchr]
test eax, eax
je 0x6a0cbbd8
sub eax, esi
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0
mov edx, eax
lea edx, [ebx + edx + 1]
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x130], eax
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6a0cbc02
mov dword [esp + 8], ebx
add ebx, edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x12c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x6a0cbb00
test byte [0x6a0de098], 8
jne 0x6a0cbb48
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov esi, eax
cmp eax, 0xffffffff
je 0x6a0cbb00
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x13c], eax
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x130]
call eax
mov dword [ebp - 0x12c], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x6a0cbb00
lea eax, [ebp - 0x124]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [ebp - 0x130], ecx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x6a0cba85
cmp dword [ebp - 0x124], esi
mov ecx, dword [ebp - 0x130]
je 0x6a0cbb80
mov dword [esp + 8], edi
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x12c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp], ebx
mov ebx, 0x80004005
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x6a0de098], 4
jne 0x6a0cbb10
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [ebp - 0x12c], 0
jmp 0x6a0cba85
mov dword [esp + 0xc], str.Returning_E_FAIL._n
mov dword [esp + 8], 0x6a0e4020
mov dword [esp + 4], 0x6a0de098
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, edi
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x6a0e3a08
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6a0e4020
mov dword [esp + 4], 0x6a0de098
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6a0cb9e8
mov eax, dword [ebp - 0x138]
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
mov dword [eax], ecx
mov eax, dword [ebp - 0x13c]
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_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
xor ebx, ebx
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 0x18
lea esi, [ebp - 0x11d]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov byte [ebp + eax - 0x11d], 0x5c
sub esp, 8
lea ebx, [eax + 1]
jmp 0x6a0cb925
mov ebx, 0x8007000e
jmp 0x6a0cbae6