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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511d4d
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.004a8570
mov edi, dword [ebp + 0xc]
mov ecx, edi
push eax
mov dword [ebp - 4], 0
call fcn.0048d380
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c080
push edi
lea ecx, [ebp - 0x18]
call fcn.0048d110
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.00485970
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.0044c0a0
push eax
call fcn.00487780
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x4a9e7b
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.0048d5c0
add esp, 0xc
jmp 0x4aa207
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a79b0
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4aa13a
mov ecx, dword [0x553094]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4a9ec6
call fcn.00487290
cmp eax, 1
jne 0x4a9ec6
mov ecx, dword [0x553094]
push 0
push 0x7b
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4aa207
push 0
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004e764f
add esp, 8
push edi
test eax, eax
jne 0x4aa186
lea ecx, [ebp - 0x10]
call fcn.0048d110
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00485970
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.0047d240
push 0x105
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0044f690
push eax
push 0
push 0x53637c
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.0047d270
test esi, esi
jne 0x4a9f4c
push dword [edi]
lea eax, [ebp + 0xc]
push str._s.tmp
push eax
call fcn.0048d020
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.004e7727
add esp, 8
test eax, eax
je 0x4aa047
call ebx
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x550bb8
call fcn.0048d5c0
add esp, 0xc
lea ecx, [ebp - 0x14]
push edi
call fcn.0048d110
push 0x518680
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0048c600
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a79b0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov esi, 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4a9ff0
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 0x4aa1fe
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 0x4aa03a
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 0x4aa1fe
lea ecx, [ebp - 0x14]
call fcn.0044c080
jmp 0x4aa122
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a79b0
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4aa120
push edi
lea ecx, [ebp - 0x14]
call fcn.0048d110
push 0x518680
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0048c600
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a79b0
add esp, 4
mov dword [esi], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x4aa0d2
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 0x4aa1fe
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 0x4aa03a
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 0x4aa1fe
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 0x4aa163
push 0x518680
lea eax, [ebp + 0x10]
push edi
push eax
call fcn.0048c0d0
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.0048d110
push 0x518680
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0048c600
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004a79b0
add esp, 4
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4aa1c6
mov eax, dword [0x553094]
mov esi, dword [eax]
call ebx
push eax
push 0x80
jmp 0x4aa1f2
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 0x4aa252
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 0x4aa226
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.0048d5c0
add esp, 0x10
xor esi, esi
jmp 0x4aa168
lea ecx, [ebp + 0xc]
jmp 0x4aa15e