Function at 0x1008406
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x10084ba
push dword [ebp + 0xc]
call fcn.01008906
test eax, eax
je 0x10084ba
push dword [ebp + 0xc]
mov esi, 0x1013fc8
push edi
push esi
call fcn.01008326
test eax, eax
je 0x10084ba
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 4]
cmp dword [eax + 0x108], ebx
je 0x10085c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10084dd
test al, 1
je 0x10084dd
push esi
push 0x2d5
call fcn.0100e675
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
call fcn.0100b7bd
cmp dword [ebp + 0x10], ebx
jne 0x10084c3
push 0x11
push 0x2d6
call fcn.0100e675
push eax
lea eax, [ebp - 0x26c]
push eax
push dword [0x10149c4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x10084c3
push ebx
call fcn.0100b7bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
call fcn.0100b7bd
mov eax, dword [ebp - 4]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x20]
mov dword [ebp + 0xc], ebx
cmp eax, ebx
je 0x10084f3
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
je 0x1008518
inc dword [0x10140cc]
cmp dword [ebp + 0x14], ebx
je 0x1008701
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1008701
mov eax, dword [edi + 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 4]
cmp dword [eax + 0x104], ebx
jne 0x1008575
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x140]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov eax, dword [edi]
jne 0x1008566
inc eax
inc eax
jmp 0x1008567
inc eax
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x140]
mov eax, dword [eax + 4]
push dword [eax + 0x128]
push dword [eax + 0x124]
push esi
push ecx
push dword [eax + 0x11c]
call fcn.01010640
push 0x104
mov dword [ebp + 0xc], eax
push dword [0x10149c8]
call sub.GUtils.dll_gmem_get
push esi
push eax
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [edi + 0x24], ebx
jmp 0x1008701
push edi
call fcn.01007e0e
push esi
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1008655
test al, 1
je 0x1008655
push esi
push 0x2d5
call fcn.0100e675
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
call fcn.0100b7bd
cmp dword [ebp + 0x10], ebx
jne 0x100863b
push 0x11
push 0x2d6
call fcn.0100e675
push eax
lea eax, [ebp - 0x26c]
push eax
push dword [0x10149c4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x100863b
push ebx
call fcn.0100b7bd
mov dword [ebp + 0xc], ebx
jmp 0x1008655
push ebx
call fcn.0100b7bd
mov eax, dword [ebp - 4]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], ebx
je 0x10086f8
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x10086f8
mov edi, pe_nt_image_headers32
push ebx
push edi
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x10], eax
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push 3
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x10], eax
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x10086ea
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0xc], ebx
mov edi, dword [ebp + 8]
je 0x10086f8
inc dword [0x10140cc]
push dword [ebp - 8]
push edi
call fcn.01007f6c
mov eax, dword [ebp + 0xc]
jmp 0x10084bc