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

Disassembly:
push 0xffffffffffffffff
push 0x4e3388
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004668a0
xor ebp, ebp
mov edi, esi
mov dword [esp + 0x2c], ebp
call fcn.00401410
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46799d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.00468100
mov edi, dword [esp + 0x18]
push edi
call fcn.00468210
add esp, 4
test eax, eax
jne 0x467a1e
push edi
push str.C7zExtractImpl::TryCreateFile_CreateDeepDirectory___ws_error
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
mov dword [esp + 0x2c], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467a07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi]
push ebp
push 0x80
push 2
push ebp
push 1
push 0xc0000000
mov dword [esp + 0x38], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call ebp
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x467be1
mov eax, dword [esi]
push 0
push eax
call fcn.004bbf01
add esp, 8
test eax, eax
mov eax, dword [esi]
jne 0x467ca3
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.00468100
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x34], edi
mov byte [esp + 0x2c], 3
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x105
or eax, ecx
jge 0x467abe
mov ecx, 0x105
lea eax, [esp + 0x34]
call fcn.00401150
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push edi
push 0
push 0x4ef7d8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test edi, edi
jne 0x467ad9
xor ecx, ecx
jmp 0x467af5
mov ecx, edi
lea ebp, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x467ae0
sub ecx, ebp
sar ecx, 1
js 0x467c99
cmp ecx, dword [edi - 8]
jg 0x467c99
test eax, eax
mov dword [edi - 0xc], ecx
mov word [edi + ecx*2], 0
jne 0x467b23
mov edx, dword [esi]
push edx
push str._s.tmp
lea edi, [esp + 0x3c]
call fcn.00406130
mov edi, dword [esp + 0x3c]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push edi
push eax
call fcn.004ba2e0
add esp, 8
test eax, eax
je 0x467c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [esi]
add esp, 8
sub eax, 0x10
call fcn.004012e0
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x2c], 4
mov edx, 0x4efdd8
mov edi, esi
call fcn.004139a0
mov eax, dword [esi]
call fcn.00467910
cmp eax, 0xffffffff
mov dword [esp + 0x20], 1
mov dword [ebx], eax
jne 0x467baa
lea ecx, [esp + 0x1c]
call fcn.004016d0
lea ecx, [esp + 0x34]
call fcn.004016d0
lea ecx, [esp + 0x14]
jmp 0x467cf9
mov eax, dword [esi]
push 5
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea ecx, [esp + 0x1c]
je 0x467b93
call fcn.004016d0
lea ecx, [esp + 0x34]
call fcn.004016d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004016d0
cmp dword [esp + 0x20], 0
jne 0x467c1f
lea ecx, [esp + 0x34]
push esi
push ecx
mov ebx, 0x4efdd8
call fcn.00413a60
mov edx, dword [esp + 0x3c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467c47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esi]
call fcn.00467910
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x467bc3
mov eax, dword [esi]
sub eax, 0x10
call fcn.004012e0
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x2c], 5
jmp 0x467b6d
push 0x80070057
call fcn.00401350
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x34], eax
mov edx, 0x4efdd8
mov edi, esi
mov byte [esp + 0x2c], 6
call fcn.004139a0
mov eax, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call ebp
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x467cf5
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x467d4a
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.004016d0
mov ebx, dword [ebx]
cmp ebx, 0xffffffff
je 0x467d1a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push edx
push str.TryCreateFile___ws__error:_d
mov ecx, 0x5158b0
call fcn.00489840
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
jmp 0x4679ee
lea ecx, [esp + 0x34]
call fcn.004016d0
jmp 0x467c1f