Function at 0x4a98f0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ea8d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004a80b0
mov edi, dword [ebp + 0xc]
mov ecx, edi
push eax
mov dword [ebp - 4], 0
call fcn.0048cea0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c000
push edi
lea ecx, [ebp - 0x18]
call fcn.0048cc30
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.00485710
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.0044c020
push eax
call fcn.00487540
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x4a99ab
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x54e094]
push eax
push 0x7a
call dword [esi + 0x20]
push dword [ebp - 0x18]
push str.C7zExtractImpl::TryCreateFile_CreateDeepDirectory___ws_error
push 0x54bba8
call fcn.0048d0e0
add esp, 0xc
jmp 0x4a9d37
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004a74f0
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a9c6a
mov ecx, dword [0x54e094]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4a99f6
call fcn.00487050
cmp eax, 1
jne 0x4a99f6
mov ecx, dword [0x54e094]
push 0
push 0x7b
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4a9d37
push 0
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004e43a1
add esp, 8
push edi
test eax, eax
jne 0x4a9cb6
lea ecx, [ebp - 0x10]
call fcn.0048cc30
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00485710
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.0047d0b0
push 0x105
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0044f550
push eax
push 0
push 0x5323dc
lea ecx, [ebp - 0x10]
call fcn.0044c020
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.0047d0e0
test esi, esi
jne 0x4a9a7c
push dword [edi]
lea eax, [ebp + 0xc]
push str._s.tmp
push eax
call fcn.0048cb40
add esp, 0xc
lea ecx, [ebp + 0xc]
call fcn.0044c020
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004e4479
add esp, 8
test eax, eax
je 0x4a9b77
call ebx
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x54bba8
call fcn.0048d0e0
add esp, 0xc
lea ecx, [ebp - 0x14]
push edi
call fcn.0048cc30
push 0x515670
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0048c120
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004a74f0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov esi, 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4a9b20
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x54e094]
push eax
push 0x7c
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c000
lea ecx, [ebp + 0xc]
call fcn.0044c000
lea ecx, [ebp - 0x10]
jmp 0x4a9d2e
push 5
lea ecx, [ebp - 0x14]
call fcn.0044c020
push eax
mov ecx, edi
call fcn.0044c020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4a9b6a
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x54e094]
push eax
push 0x7d
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c000
lea ecx, [ebp + 0xc]
call fcn.0044c000
lea ecx, [ebp - 0x10]
jmp 0x4a9d2e
lea ecx, [ebp - 0x14]
call fcn.0044c000
jmp 0x4a9c52
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004a74f0
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a9c50
push edi
lea ecx, [ebp - 0x14]
call fcn.0048cc30
push 0x515670
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0048c120
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004a74f0
add esp, 4
mov dword [esi], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x4a9c02
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x54e094]
push eax
push 0x7e
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c000
lea ecx, [ebp + 0xc]
call fcn.0044c000
lea ecx, [ebp - 0x10]
jmp 0x4a9d2e
push 5
lea ecx, [ebp - 0x14]
call fcn.0044c020
push eax
mov ecx, edi
call fcn.0044c020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4a9b6a
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x54e094]
push eax
push 0x7f
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c000
lea ecx, [ebp + 0xc]
call fcn.0044c000
lea ecx, [ebp - 0x10]
jmp 0x4a9d2e
xor esi, esi
lea ecx, [ebp + 0xc]
call fcn.0044c000
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0044c000
test esi, esi
jne 0x4a9c93
push 0x515670
lea eax, [ebp + 0x10]
push edi
push eax
call fcn.0048bbf0
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.0044c020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp + 0x10]
call fcn.0044c000
mov esi, 1
lea ecx, [ebp - 0x18]
call fcn.0044c000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp + 0xc]
call fcn.0048cc30
push 0x515670
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0048c120
mov ecx, edi
call fcn.0044c020
push eax
call fcn.004a74f0
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a9cf6
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
push eax
push 0x80
jmp 0x4a9d22
push 5
lea ecx, [ebp + 0xc]
call fcn.0044c020
push eax
mov ecx, edi
call fcn.0044c020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4a9d82
mov eax, dword [0x54e094]
mov esi, dword [eax]
call ebx
push eax
push 0x81
mov ecx, dword [0x54e094]
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0044c000
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a9d56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0044c020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x54e094]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x24]
call ebx
push eax
push dword [edi]
push str.TryCreateFile___ws__error:_d
push 0x54bba8
call fcn.0048d0e0
add esp, 0x10
xor esi, esi
jmp 0x4a9c98
lea ecx, [ebp + 0xc]
jmp 0x4a9c8e