Function at 0x40fa70
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fd7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 4
sub esp, 0x1bc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x120], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418f10
add esp, 8
mov ecx, dword [ebp - 0x1cc]
mov dword [ecx + 0x78], eax
push 0x103
lea eax, [ebp - 0x118]
push eax
call fcn.00409470
add esp, 8
jmp 0x40fad7
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x118]
mov dword [ebp - 0x124], eax
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004229e9
add esp, 0x14
jmp 0x40fb0f
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x124]
add ecx, eax
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x11c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004229e9
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x1cc]
add ecx, 0x14
call fcn.0043118b
jmp 0x40fb5d
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409490
add esp, 8
test eax, eax
je 0x40fbad
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40fbad
push 0
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40fbd4
xor eax, eax
jmp 0x40fd85
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004104d0
add esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x1cc]
mov dword [ecx + 0x4c], eax
lea eax, [ebp - 0x118]
push eax
call fcn.004104d0
add esp, 4
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1cc]
mov dword [ecx + 0x58], eax
cmp dword [ebp - 0x130], 0
je 0x40fc3f
cmp dword [ebp - 0x130], 0xffffffff
je 0x40fc3f
jmp 0x40fc44
jmp 0x40fc9b
jmp 0x40fc56
cmp dword [ebp - 0x12c], 0
je 0x40fc75
cmp dword [ebp - 0x12c], 0xffffffff
je 0x40fc75
jmp 0x40fc7a
jmp 0x40fc9b
jmp 0x40fc8c
mov dword [ebp - 0x120], 1
jmp 0x40fca5
mov dword [ebp - 0x120], 0
jmp 0x40fcba
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x120], 0
jne 0x40fd70
mov eax, dword [ebp - 0x1cc]
cmp dword [eax + 0x4c], 0
je 0x40fcf3
mov eax, dword [ebp - 0x1cc]
cmp dword [eax + 0x4c], 0xffffffff
je 0x40fcf3
jmp 0x40fcf8
jmp 0x40fd1f
jmp 0x40fd0a
mov ecx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1cc]
mov eax, dword [eax + 0x48]
add ecx, 0x48
call dword [eax + 0x44]
mov eax, dword [ebp - 0x1cc]
cmp dword [eax + 0x58], 0
je 0x40fd44
mov eax, dword [ebp - 0x1cc]
cmp dword [eax + 0x58], 0xffffffff
je 0x40fd44
jmp 0x40fd49
jmp 0x40fd70
jmp 0x40fd5b
mov ecx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1cc]
mov eax, dword [eax + 0x54]
add ecx, 0x54
call dword [eax + 0x44]
mov eax, dword [ebp - 0x120]
jmp 0x40fd85
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8