Function at 0x715e005f
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
jne 0x715e0094
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.715e0f18
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x715e03ae
cmp byte [eax], 0
je 0x715e03ae
push esi
lea eax, [ebp - 0x450]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.715dff1f
test eax, eax
jne 0x715e00ed
test byte [ebp + 0x18], 8
jne 0x715e00d5
push esi
push 0x30
push esi
push esi
push 0x485
push esi
call fcn.715d6f11
cmp dword [ebp - 0xc], esi
je 0x715e00e3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80004005
jmp 0x715e03b0
mov eax, dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
and eax, 0x10
mov dword [ebp + 0x10], eax
jne 0x715e017c
push esi
push 0x715e0e74
push dword [ebp + 8]
push 0x48a
push dword [0x715e4758]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
je 0x715e0142
inc dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
jmp 0x715e012d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
movzx eax, word [ebp - 0x10]
shl eax, 0x10
push eax
push 0
mov esi, 0x48b
push 0x401
push esi
push dword [ebp - 4]
call ebx
push eax
call edi
push 0
push 1
push 0x404
push esi
push dword [ebp - 4]
call ebx
push eax
call edi
jmp 0x715e0181
mov esi, 0x48b
lea eax, [ebp - 0x240]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
jmp 0x715e019e
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x715e0376
and dword [ebp - 0x24], 0
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.715e03b7
cmp dword [ebp - 0x30], 0xffffffff
je 0x715e02fa
cmp dword [ebp - 0x24], 0
jbe 0x715e02fa
cmp dword [ebp - 0x20], 0xffffffff
je 0x715e02fa
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x38]
call fcn.715e0552
test eax, eax
jne 0x715e0220
test byte [ebp + 0x18], 8
jne 0x715e032f
push 4
push 0x30
push eax
push dword [ebp - 0x38]
push 0x487
push dword [ebp + 8]
call fcn.715d6f11
cmp eax, 7
je 0x715e036f
jmp 0x715e032f
test byte [ebp + 0x19], 4
je 0x715e023d
cmp dword [ebp - 0x18], 0xffffffff
je 0x715e023d
push dword [ebp - 0x38]
call fcn.715dfbf1
cmp eax, dword [ebp - 0x18]
ja 0x715e032f
push dword [ebp - 0x450]
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.715e0a6a
test eax, eax
je 0x715e02a7
test byte [ebp + 0x18], 8
jne 0x715e032f
push eax
lea eax, [ebp - 0x13c]
push 0x715d1eb4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x13c]
push 4
push 0x30
push eax
push dword [ebp - 0x38]
push 0x486
push dword [ebp + 8]
call fcn.715d6f11
cmp eax, 7
jne 0x715e032f
mov dword [ebp - 8], 0x80004005
jmp 0x715e032f
push dword [ebp - 0x30]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp - 0x13c]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x715e02ee
lea eax, [ebp - 0x13c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x715e032f
push dword [ebp - 0x38]
lea eax, [ebp - 0x13c]
push eax
jmp 0x715e0323
test byte [ebp + 0x18], 4
jne 0x715e032f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x715e032f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x715e032f
push 0x715d334c
push dword [ebp + 0x14]
lea eax, [ebp - 0x240]
push eax
call fcn.715e061c
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
lea eax, [ecx + eax + 1]
mov dword [ebp + 0x14], eax
jne 0x715e0363
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x405
push esi
push dword [ebp - 4]
call ebx
push eax
call edi
cmp dword [ebp - 8], 0
je 0x715e019b
jmp 0x715e0376
mov dword [ebp - 8], 0x80004005
cmp dword [ebp - 4], 0
je 0x715e0385
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x450], 0xffffffff
je 0x715e039a
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x715e03a9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x715e03b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14