Function at 0x10065c7a
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0x2a4
mov eax, 0x10170ca6
call fcn.1016d10a
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x2ac], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100664cc
call fcn.10064acc
test al, al
je 0x10065cc1
pop edx
push ebx
push edx
push ecx
push esi
push ebp
pop esi
push edx
push esp
push ecx
pop esi
pop eax
pop ebx
push eax
pop ebp
push edx
pop edx
push eax
pop ebp
push ebx
push ecx
pop ebx
push ebx
call fcn.10064973
test al, al
je 0x10065ce0
pop ebp
pop esp
push edi
push eax
push ebp
push edx
pop edi
push edx
pop ebp
push esi
push ecx
pop edi
pop esp
pop edi
pop eax
pop esi
pop ebx
pop esi
pop esi
pop esi
push edx
pop esi
call fcn.10064c6a
test al, al
je 0x10065d09
push edi
pop edx
push edi
pop esi
pop ecx
push esi
pop esi
push eax
push ecx
pop esp
pop ecx
pop eax
pop ebp
pop ecx
push ebx
pop ebp
pop ecx
push eax
pop edi
push ebp
push ecx
pop ecx
push ebx
push esi
pop esi
push esi
push ecx
pop esi
pop edi
pop eax
pop esi
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10065d41
call fcn.10064973
test al, al
je 0x100664cc
pop ebp
push esp
pop eax
push esi
push esi
pop ebp
push ebx
pop eax
push esp
push ebp
pop ebp
push edi
push edi
push eax
pop esi
pop esp
pop ebp
pop esi
push eax
pop ebx
push ebx
pop edi
jmp 0x100664cc
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10080190
add esp, 0xc
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], ebx
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push ebx
push 0x101744f4
call fcn.10006830
mov dword [ebp - 4], ebx
call fcn.10064c6a
test al, al
je 0x10065da5
pop ebx
push ebp
push esp
pop edi
push ebp
pop eax
pop ebx
pop ecx
pop ebp
push eax
pop esp
pop ebp
pop ebx
push ecx
push ebx
pop esp
pop eax
pop ebp
pop eax
push ebx
push ebx
pop ecx
push esp
call fcn.10064b9b
test al, al
je 0x10065dc5
push ebx
push ecx
push ecx
pop esp
push esi
pop edx
push esi
pop edx
pop ecx
pop ebp
push edx
pop ebx
pop ecx
pop esp
push ebx
push eax
pop esp
push ebx
push edx
push esp
pop ebp
push esp
push esi
call fcn.10064acc
test al, al
je 0x10065de2
push ebx
push ebx
pop ecx
pop esp
pop ebx
pop ebp
push esi
push edi
pop ecx
push esp
pop esp
push ebp
push eax
pop edx
push ebp
pop ebx
push ebp
push eax
push edi
push eax
call fcn.10064b11
test al, al
je 0x10065e01
push esp
pop ebp
push edi
pop ecx
push ebx
pop ecx
push eax
pop ebp
push ecx
push edi
pop edi
push ebp
push esp
push ebx
pop ebx
pop ebp
pop esi
push edi
pop edi
push edi
push esi
pop ecx
call fcn.10065078
test al, al
je 0x10065e21
pop esi
push ebx
push ebx
push esp
push ebx
push eax
push ebp
push esi
pop ebx
push edx
push eax
pop esp
pop ebx
pop eax
push ebp
push esp
pop edi
push ecx
pop ecx
push ebp
pop eax
push ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
call fcn.100673cd
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.10064d7e
test al, al
je 0x10065e6d
pop ebx
pop ecx
pop edi
pop ebx
pop esp
pop edi
push eax
push eax
pop edi
push edx
pop eax
pop edx
pop esi
push esp
push ebx
pop ebx
pop ebp
push edx
pop esi
push ebp
pop ecx
pop ebp
push ecx
push esi
push ebx
call fcn.10064973
test al, al
je 0x10065e8d
push ebx
push esp
pop ebp
pop eax
pop ecx
pop eax
pop ebx
pop ebx
push edi
pop esi
push eax
pop ebp
push edx
pop esp
push ecx
push esi
pop ebp
pop esi
push esp
push edi
pop ecx
push ebp
pop ecx
call fcn.10064f1c
test al, al
je 0x10065eab
push ecx
pop edi
push esi
pop ecx
pop ebx
pop eax
pop ecx
push ecx
pop esp
pop eax
pop ecx
push ebp
push ebp
push ebx
push esi
pop esp
push esi
push edx
push esp
push esi
push edx
call fcn.10064a42
test al, al
je 0x10065ed3
pop edi
pop ecx
push esp
pop eax
push ecx
push esp
push ecx
push esp
push ebx
push esi
pop edi
pop esp
push esp
push edx
push ecx
push ecx
pop edi
push edx
push ebp
pop edi
pop eax
push ebp
push eax
pop ebx
pop edx
push ecx
push ebp
pop eax
pop esp
push esp
push esp
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x278]
push eax
call fcn.100677ce
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.10064d39
test al, al
je 0x10065f0a
push ebp
push ebp
push esp
push ecx
pop esp
pop edx
push ecx
pop edx
push edx
push esp
push eax
pop ebx
push edx
push ebp
pop ecx
pop edi
pop edi
pop ebx
pop ebx
pop eax
pop esp
pop ecx
call fcn.1006492e
test al, al
je 0x10065f23
pop esi
push ebx
pop eax
push eax
pop edi
pop ebp
pop eax
pop ebp
pop ecx
pop eax
pop ebp
push ecx
push eax
pop edi
push ecx
pop edx
call fcn.10064dc3
test al, al
je 0x10065f42
pop esi
pop ebx
push eax
pop edx
push edx
pop edx
pop edi
push edi
pop ebp
pop esi
pop ebp
pop edx
push esp
push edx
pop ecx
pop ebp
pop ebp
pop eax
pop ebx
pop ecx
push ecx
pop eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.100677ce
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.100643de
add esp, 0xc
call fcn.10064f1c
test al, al
je 0x10065f82
pop ecx
pop esp
push ebp
pop eax
pop ebp
push esi
push ecx
pop eax
pop ecx
pop esp
pop esi
pop esi
push ecx
push eax
push ebx
pop esp
pop esp
call fcn.10064fee
test al, al
je 0x10065f9c
pop edi
pop esp
pop ecx
push edx
push ebx
pop edi
pop ecx
push edi
push ebx
pop esp
pop edx
push edx
push esp
pop ecx
push ecx
push edx
pop ebp
lea eax, [ebp - 0x260]
push eax
call fcn.100643de
pop ecx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.10066d10
test eax, eax
jne 0x1006604c
call fcn.10064a87
test al, al
je 0x10065fe1
pop edx
push esp
pop esi
pop eax
push esi
pop eax
push ebx
pop edx
pop ebx
pop edi
push eax
pop edx
push esp
push ecx
pop edi
pop ebp
pop edx
push esp
push eax
push ecx
pop esp
call fcn.10065078
test al, al
je 0x10065fff
pop eax
push esi
push eax
pop ebx
push esi
push eax
pop ebp
pop esp
pop esp
push esp
push esi
push esp
push edi
push ebp
pop eax
pop ebp
pop edx
push eax
push ebp
push ebp
pop ebx
call fcn.10064fa6
test al, al
je 0x1006601c
pop edx
push edx
pop edx
push esp
pop eax
push ebx
push ebx
pop edi
push ebx
pop ecx
push ebp
push eax
pop edi
push ebp
push edx
pop ebp
push ebp
pop esi
pop edx
push esi
cmp word [ebp - 0x218], 0
jne 0x1006602a
xor eax, eax
jmp 0x10066037
lea eax, [ebp - 0x218]
push eax
call fcn.10093843
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.10006830
jmp 0x100660bd
call fcn.10065078
test al, al
je 0x1006606e
pop ebx
pop edx
pop edx
pop eax
push ecx
pop esi
pop edi
push ecx
pop ebx
pop ebp
pop ecx
push edx
push edi
push ebp
pop eax
pop esp
push edi
pop esi
pop ebp
push ecx
pop ebx
push eax
push ecx
push ecx
push esi
call fcn.10064e4d
test al, al
je 0x1006608e
pop esp
push esp
push ebp
pop edi
pop ecx
pop esp
push esi
pop ecx
pop eax
push ebp
pop esp
pop ecx
push ecx
pop edi
push ebp
push esp
pop edi
push eax
pop eax
pop ebp
push ebp
push ecx
push esi
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x290]
push eax
call fcn.10067651
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.100087d0
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.10006390
and dword [ebp - 0x2b0], 0
call fcn.10064b56
test al, al
je 0x100660e6
pop esp
pop ebx
pop esi
push ebp
push edx
pop ecx
push ebp
pop ecx
pop ebp
pop edi
push edi
push ebx
pop esi
pop ebp
pop ebp
pop eax
pop ecx
pop edi
pop ebp
push edx
push esp
push ebp
pop esi
pop ecx
pop ebp
call fcn.10064ed7
test al, al
je 0x1006610e
push esi
push edx
push edi
push esp
pop esp
pop ecx
pop ebx
push esi
push ebx
push eax
pop ebx
push edx
push edx
pop edi
push ebx
pop edi
push esp
push edx
push ebp
push esp
push ebp
pop eax
push ebp
push edx
push ebp
push eax
push eax
push eax
pop edi
push edi
pop esi
call fcn.100649fd
test al, al
je 0x10066136
pop edx
push edi
push eax
pop edx
pop edx
pop ebx
pop edx
push ebp
pop ebx
pop esi
push edi
push edx
pop edi
push ebx
pop edi
push ecx
push ebp
pop ebp
push edx
push esi
push esi
push edx
pop eax
pop ecx
pop edi
push edx
push ebx
push edi
push ebp
push edx
pop esp
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x101744f4
mov word [ebp - 0x230], ax
call fcn.10006830
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.10006710
call fcn.10064b9b
test al, al
je 0x1006619e
pop esp
pop esi
pop ecx
pop edx
pop edx
push ebx
push edx
push ebp
pop ecx
pop ebp
pop eax
pop esi
push ebx
pop esp
pop eax
push ebp
push esi
push esp
pop eax
push esi
push ebx
push eax
push esp
pop ecx
pop edi
push ebx
call fcn.10064c25
test al, al
je 0x100661bd
push eax
pop esi
pop edx
push ebp
pop ebx
push ebx
pop eax
push ebx
push ebx
push eax
push edx
push esp
pop ecx
pop esi
push ebx
pop edi
push ebx
push ebx
push esp
pop ebp
pop esi
pop esp
call fcn.10064d39
test al, al
je 0x100661e6
push edi
push eax
pop ebx
pop ebx
push esp
pop ecx
push esi
pop eax
push edx
pop ecx
pop edi
push esp
pop esp
pop edx
push ebx
pop edx
push esi
pop ebx
push ecx
push eax
pop edi
pop eax
pop eax
pop edi
pop esi
push ebx
pop ecx
push ebp
push edx
pop ebp
push ebp
push ebp
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x2a8]
push ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.100064d0
mov esi, str..eda
push esi
call fcn.10093843
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.100065e0
mov eax, dword [ebp - 0x2b0]
test eax, eax
jle 0x10066257
cdq
push edx
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.10066da7
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.100064d0
push ebx
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.10006390
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006632c
call fcn.10064caf
test al, al
je 0x10066297
push ebx
pop eax
pop edx
pop ebp
pop edi
push edi
pop edi
push eax
push esp
push edi
pop esi
pop ebx
pop esi
pop eax
push ebp
pop ebx
push esi
push ecx
pop edx
pop ebx
call fcn.10064caf
test al, al
je 0x100662b8
push esi
push edx
push edi
push eax
pop esi
push edx
push esp
pop esp
push edx
pop edi
pop edi
push ebp
pop edx
pop eax
push ecx
pop ebx
push ecx
pop ecx
push eax
pop esi
push ebx
push ebp
pop esp
push ebx
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 0x1006632c
call fcn.10064cf4
test al, al
je 0x100662fe
pop edx
push edx
pop eax
push edi
push edi
pop edx
push ecx
push edx
push edi
push esp
push ecx
pop esi
push esi
pop esp
pop esi
push ebx
pop ebx
pop eax
pop edi
push ebp
pop eax
pop esi
pop esp
push esi
pop ebp
pop edx
push ebp
pop esp
pop ecx
push eax
mov eax, dword [ebp - 0x2b0]
cmp eax, 0xa
jge 0x10066483
push 0
inc eax
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2b0], eax
call fcn.10006390
jmp 0x10066136
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x2ac]
call fcn.10093a28
pop ecx
pop ecx
call fcn.10064b11
test al, al
je 0x1006636b
pop esi
push edi
pop ecx
pop eax
pop eax
push esp
push ecx
pop eax
push edi
pop esi
pop ebp
pop edi
pop esi
push eax
push edx
pop eax
pop ebx
pop edi
pop ecx
pop esp
call fcn.10064b11
test al, al
je 0x1006638a
pop ebp
push ecx
push edi
push ebp
pop ebx
pop edi
pop edx
push esp
pop ebp
push esp
push edi
pop edi
pop eax
push esi
push edi
pop edi
push edi
pop esi
pop ebp
pop edi
pop edi
pop eax
call fcn.10064dc3
test al, al
je 0x100663b3
push edx
pop esp
pop ecx
pop esp
pop esi
pop ecx
pop edi
pop ebp
push edi
pop esi
pop eax
push eax
pop ebp
push ecx
push eax
push ebp
push ecx
push esi
pop eax
pop eax
push ecx
push ebp
push esi
push ebx
pop ebp
push ecx
push ebp
pop eax
pop esp
push esp
push esp
pop eax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x100663f3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x2ac]
call ebx
test eax, eax
je 0x10066483
call fcn.10064d7e
test al, al
je 0x10066429
push ecx
pop ecx
push eax
push edx
push esp
pop esi
pop ebp
push ebx
pop ebp
pop ebx
pop esp
push ecx
pop esp
pop edi
push ecx
push ebx
push edx
push ecx
pop edx
push edx
pop ecx
push ecx
push ebx
pop eax
push ebx
push eax
push ecx
pop ebx
pop edi
call fcn.10064e08
test al, al
je 0x1006644b
push eax
pop edi
pop edi
pop edi
push esp
pop edx
pop eax
pop eax
push eax
push esi
push esp
push edx
pop esp
push esp
push esi
pop eax
pop edi
pop edx
push ebx
push esp
pop ecx
push esp
push ebp
push esi
push esp
call fcn.10064fa6
test al, al
je 0x10066473
push ebx
push eax
push esi
pop ebx
pop esi
push ebx
pop eax
push eax
pop edi
push ebp
push edi
pop ebx
pop ebx
pop edx
push esi
pop esp
push edx
push ebx
pop eax
push edx
push ebx
pop ebp
push esp
push eax
pop edx
push esi
push ebp
pop esp
push esi
push ebp
push eax
push 5
push 0
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
lea ecx, [ebp - 0x230]
push 0
inc ebx
push ebx
call fcn.10006390
push 0
push ebx
lea ecx, [ebp - 0x260]
call fcn.10006390
push 0
push ebx
lea ecx, [ebp - 0x278]
call fcn.10006390
push 0
push ebx
lea ecx, [ebp - 0x2a8]
call fcn.10006390
push 0
push ebx
lea ecx, [ebp - 0x248]
call fcn.10006390
call fcn.1016d0c5
ret