Function at 0x424640
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0x640], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7c
lea ebx, [ebp - 0x63c]
mov ecx, esi
call fcn.00437460
mov ecx, dword [ebp - 0x638]
sub ecx, dword [ebp - 0x63c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esp, 4
xor ebx, ebx
add esi, edx
je 0x424808
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 0x62c], eax
jmp 0x4246e7
mov eax, dword [ebp - 0x62c]
cmp esi, ebx
jbe 0x424882
cmp dword [eax + 0x14], 8
jb 0x4246f7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043a043
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x628]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x420]
push eax
push edi
push 0x45b440
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x424783
push 4
push edi
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42478d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x4247aa
lea eax, [ebp - 0x218]
push eax
push str.Deleting_file___s_.
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
jmp 0x4247f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4247d5
lea ecx, [ebp - 0x218]
push ecx
push str.File_not_found_when_attempting_deletion___s_.
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
jmp 0x4247f8
cmp eax, edi
je 0x4247f8
lea edx, [ebp - 0x218]
push edx
push eax
push str.Error_0x_X_raised_while_deleting___s_.
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0x10
add dword [ebp - 0x62c], 0x1c
inc ebx
cmp ebx, esi
jb 0x4246e1
mov eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x63c]
cmp esi, edi
je 0x424866
cmp esi, dword [ebp - 0x638]
je 0x42485d
mov ebx, 7
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x424841
mov ecx, dword [esi]
push ecx
call fcn.004396db
add esp, 4
xor edx, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [ebp - 0x638]
jne 0x424830
mov esi, dword [ebp - 0x63c]
push esi
call fcn.004396db
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.004376d8
int3