Function at 0x5644d0
Capabilities:
Delete file
Get common file path

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
mov edi, esi
sub esp, 0x260
mov eax, dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], str.Wine_Test_Mapping
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8000004
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov dword [ebp - 0x244], eax
call eax
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x605
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFileMapping_failed_with_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x606
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
mov edx, dword [esi + 0x34]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], str.Wine_Test_Mapping
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8000004
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov eax, dword [ebp - 0x244]
call eax
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x60b
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateFileMapping_failed_with_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x60c
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0xb7
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], esi
mov dword [ebp - 0x248], eax
call eax
mov dword [edi + 0x34], 0xdeadbeef
sub esp, 4
mov dword [esp + 0x14], str.WINE_TEST_MAPPING
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8000004
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov ecx, dword [ebp - 0x244]
call ecx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x612
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateFileMapping_failed_with_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x613
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
mov ecx, dword [edi + 0x34]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], esi
mov eax, dword [ebp - 0x248]
call eax
mov dword [ebp - 0x23c], edi
sub esp, 4
mov dword [edi + 0x34], 0xdeadbeef
mov edi, dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [esp + 8], str.Wine_Test_Mapping
mov dword [esp + 4], 0
mov dword [esp], 0xf001f
call edi
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x618
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.OpenFileMapping_failed_with_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], esi
mov esi, dword [ebp - 0x248]
call esi
mov eax, dword [ebp - 0x23c]
sub esp, 4
mov dword [eax + 0x34], 0xdeadbeef
mov dword [esp + 8], str.WINE_TEST_MAPPING
mov dword [esp + 4], 0
mov dword [esp], 0xf001f
call edi
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x61d
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.OpenFileMapping_succeeded_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov edi, dword [ebp - 0x23c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x61e
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 2
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], ebx
mov esi, dword [ebp - 0x248]
lea ebx, [ebp - 0x218]
call esi
lea esi, [ebp - 0x114]
mov dword [ebp - 0x234], 0xffffffff
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5fea7d
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
call esi
sub esp, 0x1c
mov edi, eax
mov dword [ebp - 0x230], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x629
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFile_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2000
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x6c
add eax, ebx
mov word [eax + 0xc], dx
mov dword [eax], 0x72656b5c
mov dword [eax + 4], 0x336c656e
mov dword [eax + 8], 0x6c642e32
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
call esi
sub esp, 0x1c
mov ebx, eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x22c], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x630
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFile_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
mov ebx, 0x601320
setne al
xor esi, esi
mov dword [esp], eax
call fcn.0055ab70
mov dword [ebp - 0x250], edi
mov edx, 0xffffffff
jmp 0x564bb3
mov eax, dword [ebp - 0x238]
mov edx, 1
test eax, 0x40000000
jne 0x564a01
and eax, 0x11000000
xor edx, edx
cmp eax, 0x11000000
sete dl
mov dword [ebp - 0x240], edx
call fcn.0057d110
mov edx, dword [ebp - 0x240]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x643
mov eax, dword fs:[0x18]
test edi, edi
mov ecx, dword [eax + 0x34]
mov eax, 1
je 0x564c90
mov dword [ebp - 0x240], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._u:_CreateFileMapping_failed_with_error__lu_n
call fcn.0055ab70
call fcn.0057d110
mov edx, 1
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x645
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x564a98
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x564a98
xor edx, edx
cmp ecx, 0x57
jne 0x564a98
mov eax, dword [0x8f0770]
xor edx, edx
test eax, eax
sete dl
lea esi, [esi]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], str._u:_wrong_error__lu_n
mov dword [esp], edx
call fcn.0055ab70
test edi, edi
je 0x564b9b
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x228]
test edx, edx
cmove edx, dword [ebp - 0x238]
mov dword [ebp - 0x240], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [0x8e0648]
sub esp, 0x14
mov dword [ebp - 0x238], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x238]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x64f
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._u:_NtQuerySection_failed_err__lx_n
call fcn.0055ab70
call fcn.0057d110
mov edx, dword [ebp - 0x240]
mov ecx, 1
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x651
mov eax, dword [ebp - 0x224]
cmp eax, edx
je 0x564b75
and edx, 0xefffffff
cmp edx, eax
sete dl
xor ecx, ecx
cmp dword [0x8f0770], 0
sete cl
and ecx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._u:_NtQuerySection_wrong_attr__08lx_n
mov dword [esp], ecx
call fcn.0055ab70
mov dword [esp], edi
mov eax, dword [ebp - 0x248]
call eax
sub esp, 4
add esi, 1
add ebx, 0x10
cmp esi, 0x2c
je 0x564ca8
mov eax, dword [ebx]
mov edx, dword [ebp + eax*4 - 0x234]
xor eax, eax
cmp dword [ebx], 2
mov edi, dword [ebx + 4]
setne al
mov ecx, dword [ebp - 0x23c]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x238], edi
or eax, edi
mov dword [ecx + 0x34], 0xdeadbeef
mov dword [esp], edx
mov dword [esp + 0x14], str.Wine_Test_Mapping
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x244]
call eax
mov edx, dword [ebx + 8]
sub esp, 0x18
mov edi, eax
test edx, edx
je 0x5649e0
mov dword [ebp - 0x240], edx
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x63b
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str._u:_CreateFileMapping_succeeded_n
call fcn.0055ab70
call fcn.0057d110
mov ecx, dword [ebp - 0x23c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x63c
mov eax, dword [ecx + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._u:_wrong_error__lu_n
mov edx, dword [ebp - 0x240]
cmp dword [ecx + 0x34], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
jmp 0x564ab0
mov eax, dword [0x8f0770]
test eax, eax
sete al
and eax, edx
jmp 0x564a35
mov edi, dword [ebp - 0x250]
mov dword [esp], edi
mov ebx, dword [ebp - 0x248]
call ebx
mov eax, dword [ebp - 0x24c]
sub esp, 4
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x114]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret