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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5120ad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x550144]
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.004a84c0
mov edi, dword [ebp + 0xc]
mov ecx, edi
push eax
mov dword [ebp - 4], 0
call fcn.0048d300
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c080
push edi
lea ecx, [ebp - 0x18]
call fcn.0048d090
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.00485920
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.0044c0a0
push eax
call fcn.00487730
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x4a9dbb
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x553094]
push eax
push 0x7a
call dword [esi + 0x20]
push dword [ebp - 0x18]
push str.C7zExtractImpl::TryCreateFile_CreateDeepDirectory___ws_error
push 0x550bb8
call fcn.0048d540
add esp, 0xc
jmp 0x4aa147
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a7900
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4aa07a
mov ecx, dword [0x553094]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4a9e06
call fcn.00487240
cmp eax, 1
jne 0x4a9e06
mov ecx, dword [0x553094]
push 0
push 0x7b
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4aa147
push 0
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004e79bf
add esp, 8
push edi
test eax, eax
jne 0x4aa0c6
lea ecx, [ebp - 0x10]
call fcn.0048d090
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00485920
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.0047d1f0
push 0x105
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0044f690
push eax
push 0
push 0x5364dc
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.0047d220
test esi, esi
jne 0x4a9e8c
push dword [edi]
lea eax, [ebp + 0xc]
push str._s.tmp
push eax
call fcn.0048cfa0
add esp, 0xc
lea ecx, [ebp + 0xc]
call fcn.0044c0a0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004e7a97
add esp, 8
test eax, eax
je 0x4a9f87
call ebx
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x550bb8
call fcn.0048d540
add esp, 0xc
lea ecx, [ebp - 0x14]
push edi
call fcn.0048d090
push 0x518680
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0048c580
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a7900
mov ecx, dword [ebp + 0x10]
add esp, 4
mov esi, 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4a9f30
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x553094]
push eax
push 0x7c
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c080
lea ecx, [ebp + 0xc]
call fcn.0044c080
lea ecx, [ebp - 0x10]
jmp 0x4aa13e
push 5
lea ecx, [ebp - 0x14]
call fcn.0044c0a0
push eax
mov ecx, edi
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4a9f7a
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x553094]
push eax
push 0x7d
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c080
lea ecx, [ebp + 0xc]
call fcn.0044c080
lea ecx, [ebp - 0x10]
jmp 0x4aa13e
lea ecx, [ebp - 0x14]
call fcn.0044c080
jmp 0x4aa062
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a7900
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4aa060
push edi
lea ecx, [ebp - 0x14]
call fcn.0048d090
push 0x518680
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0048c580
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a7900
add esp, 4
mov dword [esi], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x4aa012
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x553094]
push eax
push 0x7e
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c080
lea ecx, [ebp + 0xc]
call fcn.0044c080
lea ecx, [ebp - 0x10]
jmp 0x4aa13e
push 5
lea ecx, [ebp - 0x14]
call fcn.0044c0a0
push eax
mov ecx, edi
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4a9f7a
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
mov ecx, dword [0x553094]
push eax
push 0x7f
call dword [esi + 0x20]
lea ecx, [ebp - 0x14]
call fcn.0044c080
lea ecx, [ebp + 0xc]
call fcn.0044c080
lea ecx, [ebp - 0x10]
jmp 0x4aa13e
xor esi, esi
lea ecx, [ebp + 0xc]
call fcn.0044c080
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0044c080
test esi, esi
jne 0x4aa0a3
push 0x518680
lea eax, [ebp + 0x10]
push edi
push eax
call fcn.0048c050
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp + 0x10]
call fcn.0044c080
mov esi, 1
lea ecx, [ebp - 0x18]
call fcn.0044c080
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.0048d090
push 0x518680
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0048c580
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a7900
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4aa106
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
push eax
push 0x80
jmp 0x4aa132
push 5
lea ecx, [ebp + 0xc]
call fcn.0044c0a0
push eax
mov ecx, edi
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4aa192
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
push eax
push 0x81
mov ecx, dword [0x553094]
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0044c080
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4aa166
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x553094]
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 0x550bb8
call fcn.0048d540
add esp, 0x10
xor esi, esi
jmp 0x4aa0a8
lea ecx, [ebp + 0xc]
jmp 0x4aa09e