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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3f48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041e4a0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0041c6d0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f3b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.004890f0
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.0048a400
test eax, eax
jne 0x41f417
mov eax, dword [0x51544c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x7a
call dword [esi + 0x20]
push edi
push str.C7zExtractImpl::TryCreateFile_CreateDeepDirectory___ws_error
push 0x515488
call fcn.0048d4b0
add esp, 0xc
jmp 0x41f812
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebx]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f6ef
mov ecx, dword [0x51544c]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41f473
call fcn.0048a120
cmp eax, 1
jne 0x41f473
mov ecx, dword [0x51544c]
push 0
push 0x7b
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x41f815
push 0
push dword [ebx]
call fcn.004af917
mov ecx, dword [ebx]
add esp, 8
sub ecx, 0x10
test eax, eax
jne 0x41f75f
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004890f0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x41f4b8
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x41f4eb
push 0x105
lea ecx, [ebp - 0x10]
call fcn.0041cb60
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0x4ed230
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00421f40
test ebx, ebx
mov ebx, dword [ebp + 0xc]
jne 0x41f524
push dword [ebx]
lea eax, [ebp - 0x10]
push str._s.tmp
push eax
call fcn.00421db0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebx]
call fcn.004af8ea
add esp, 8
test eax, eax
je 0x41f604
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x515488
call fcn.0048d4b0
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, 0x10
call fcn.0041c670
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push 0x4ed450
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0041c190
mov ecx, dword [ebx]
call fcn.0041f330
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f5c0
mov eax, dword [0x51544c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x7c
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041cdd0
lea ecx, [ebp - 0x10]
call fcn.0041cdd0
lea ecx, [ebp - 0x14]
jmp 0x41f809
push 5
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41f6cd
mov eax, dword [0x51544c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x7d
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041cdd0
lea ecx, [ebp - 0x10]
call fcn.0041cdd0
lea ecx, [ebp - 0x14]
jmp 0x41f809
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebx]
call fcn.0041f330
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f6d5
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0041c670
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push 0x4ed450
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0041c190
mov ecx, dword [ebx]
call fcn.0041f330
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f68d
mov eax, dword [0x51544c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x7e
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041cdd0
lea ecx, [ebp - 0x10]
call fcn.0041cdd0
lea ecx, [ebp - 0x14]
jmp 0x41f809
push 5
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41f6cd
mov eax, dword [0x51544c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x7f
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041cdd0
lea ecx, [ebp - 0x10]
call fcn.0041cdd0
lea ecx, [ebp - 0x14]
jmp 0x41f809
lea ecx, [ebp + 0xc]
call fcn.0041cdd0
lea ecx, [ebp - 0x10]
call fcn.0041cdd0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041cdd0
cmp dword [ebp - 0x18], 0
jne 0x41f725
push 0x4ed450
mov edx, ebx
lea ecx, [ebp + 8]
call fcn.0041c010
add esp, 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f725
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41f749
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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
call fcn.0041c670
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0x4ed450
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0041c190
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f7db
mov eax, dword [0x51544c]
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x80
call dword [ebx + 0x20]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41f7d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
jmp 0x41f812
push 5
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41f85c
mov eax, dword [0x51544c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51544c]
push eax
push 0x81
call dword [esi + 0x20]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041cdd0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41f82e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x51544c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str.TryCreateFile___ws__error:_d
push 0x515488
call fcn.0048d4b0
add esp, 0x10
xor esi, esi
jmp 0x41f72a
lea ecx, [ebp - 0x18]
call fcn.0041cdd0
jmp 0x41f725