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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d27a8
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.0041e570
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0041c740
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 0x41f499
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0041c6e0
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.004875f0
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.00488900
test eax, eax
jne 0x41f4f7
mov eax, dword [0x5153cc]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x7a
call dword [esi + 0x20]
push edi
push str.C7zExtractImpl::TryCreateFile_CreateDeepDirectory___ws_error
push 0x515408
call fcn.0048be90
add esp, 0xc
jmp 0x41f8f2
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 0x41f7cf
mov ecx, dword [0x5153cc]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41f553
call fcn.00488620
cmp eax, 1
jne 0x41f553
mov ecx, dword [0x5153cc]
push 0
push 0x7b
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x41f8f5
push 0
push dword [ebx]
call fcn.004ae3cc
mov ecx, dword [ebx]
add esp, 8
sub ecx, 0x10
test eax, eax
jne 0x41f83f
call fcn.0041c6e0
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004875f0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x41f598
push 0x80004005
call fcn.0041ce60
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 0x41f5cb
push 0x105
lea ecx, [ebp - 0x10]
call fcn.0041cbd0
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0x4ec230
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00422190
test ebx, ebx
mov ebx, dword [ebp + 0xc]
jne 0x41f604
push dword [ebx]
lea eax, [ebp - 0x10]
push str._s.tmp
push eax
call fcn.00422000
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebx]
call fcn.004ae39f
add esp, 8
test eax, eax
je 0x41f6e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x515408
call fcn.0048be90
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, 0x10
call fcn.0041c6e0
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push 0x4ec450
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0041c1b0
mov ecx, dword [ebx]
call fcn.0041f410
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f6a0
mov eax, dword [0x5153cc]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x7c
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041ce40
lea ecx, [ebp - 0x10]
call fcn.0041ce40
lea ecx, [ebp - 0x14]
jmp 0x41f8e9
push 5
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41f7ad
mov eax, dword [0x5153cc]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x7d
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041ce40
lea ecx, [ebp - 0x10]
call fcn.0041ce40
lea ecx, [ebp - 0x14]
jmp 0x41f8e9
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebx]
call fcn.0041f410
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f7b5
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0041c6e0
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push 0x4ec450
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0041c1b0
mov ecx, dword [ebx]
call fcn.0041f410
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 1
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41f76d
mov eax, dword [0x5153cc]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x7e
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041ce40
lea ecx, [ebp - 0x10]
call fcn.0041ce40
lea ecx, [ebp - 0x14]
jmp 0x41f8e9
push 5
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41f7ad
mov eax, dword [0x5153cc]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x7f
call dword [esi + 0x20]
lea ecx, [ebp + 0xc]
call fcn.0041ce40
lea ecx, [ebp - 0x10]
call fcn.0041ce40
lea ecx, [ebp - 0x14]
jmp 0x41f8e9
lea ecx, [ebp + 0xc]
call fcn.0041ce40
lea ecx, [ebp - 0x10]
call fcn.0041ce40
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041ce40
cmp dword [ebp - 0x18], 0
jne 0x41f805
push 0x4ec450
mov edx, ebx
lea ecx, [ebp + 8]
call fcn.0041c030
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 0x41f805
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 0x41f829
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.0041c6e0
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0x4ec450
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0041c1b0
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 0x41f8bb
mov eax, dword [0x5153cc]
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
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 0x41f8b6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
jmp 0x41f8f2
push 5
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41f93c
mov eax, dword [0x5153cc]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x81
call dword [esi + 0x20]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041ce40
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41f90e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x5153cc]
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 0x515408
call fcn.0048be90
add esp, 0x10
xor esi, esi
jmp 0x41f80a
lea ecx, [ebp - 0x18]
call fcn.0041ce40
jmp 0x41f805