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

Disassembly:
push 0x29c
mov eax, 0x58b974
call fcn.0055f097
mov esi, dword [ebp + 8]
push esi
call fcn.0040954c
pop ecx
test al, al
je 0x4093ce
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4093ce
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00561510
add esp, 0xc
lea ecx, [ebp - 0x260]
push 0x58f4c4
call fcn.00401302
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0040d003
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.0040d1ce
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0040d1ce
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 3
push eax
call fcn.0040f0e5
lea eax, [ebp - 0x278]
push eax
call fcn.0040f0e5
add esp, 0x20
lea eax, [ebp - 0x290]
lea ecx, [ebp - 0x278]
push eax
call fcn.00404ee9
test al, al
je 0x4091f8
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00401589
jmp 0x40921e
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040d11d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00402e2f
lea ecx, [ebp - 0x230]
call fcn.004014e8
xor edi, edi
push 0x58f4c4
lea ecx, [ebp - 0x230]
call fcn.00401302
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.00403df9
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.0040255e
push str..cdc
call fcn.00564b19
pop ecx
push eax
push str..cdc
lea ecx, [ebp - 0x230]
call fcn.0040255e
test edi, edi
jle 0x4092cc
mov eax, edi
cdq
push edx
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.004152c2
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 5
jb 0x4092ae
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040255e
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.004014e8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040954c
pop ecx
test al, al
je 0x409328
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409328
cmp edi, 0xa
jge 0x409397
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
inc edi
call fcn.004014e8
jmp 0x409220
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call fcn.00564c3c
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040954c
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
test al, al
je 0x409385
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call edi
push esi
call fcn.0040954c
pop ecx
test al, al
je 0x409397
push 5
push 0
push esi
call edi
lea ecx, [ebp - 0x230]
call fcn.004014e8
lea ecx, [ebp - 0x278]
call fcn.004014e8
lea ecx, [ebp - 0x290]
call fcn.004014e8
lea ecx, [ebp - 0x248]
call fcn.004014e8
lea ecx, [ebp - 0x260]
call fcn.004014e8
call fcn.0055f052
ret