Function at 0x415778
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x415780
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f7c
xor eax, eax
push ebp
push 0x415a12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403af0
mov eax, dword [ebp - 4]
call fcn.00407230
test al, al
je 0x4157ee
mov eax, dword [ebp - 4]
call fcn.00414b34
test eax, eax
je 0x4157ee
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00414640
mov eax, dword [ebp - 0x1c]
call fcn.00407220
test al, al
je 0x4157ee
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
call fcn.00403b44
jmp 0x4159e2
xor eax, eax
push ebp
push 0x415832
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004153a8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x415828
mov eax, dword [ebp - 0xc]
call fcn.00402fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4159e2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415846
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041524c
mov eax, dword [ebp - 0x10]
call fcn.00407220
test al, al
jne 0x41586a
mov eax, dword [ebp - 0xc]
call fcn.00402fb4
jmp 0x4159e2
mov dl, 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx - 4]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00403b88
mov eax, dword [ebp - 0x18]
call fcn.00403d8c
mov edx, eax
sub edx, 4
lea eax, [ebp - 0x18]
call fcn.0040406c
lea eax, [ebp - 0x14]
call fcn.00414f00
cmp dword [ebp - 0x14], 0
je 0x4159e2
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.00406c1c
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.004073b0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00406c1c
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00403ed8
jne 0x4158e6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.00403b44
jmp 0x4159e2
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
call fcn.004073b0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.00415598
push 0
push dword [ebp - 0x14]
push 0x415a28
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.004073e4
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00403e4c
mov eax, dword [ebp - 0x3c]
call fcn.00403f8c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403f8c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4159e2
push dword [ebp - 0x14]
push 0x415a28
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x18]
call fcn.004073e4
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00403e4c
mov eax, dword [ebp - 0x44]
call fcn.00403f8c
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403f8c
push eax
call sub.kernel32.dll_MoveFileA
test eax, eax
je 0x4159e2
push dword [ebp - 0x14]
push 0x415a28
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.004073e4
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00403e4c
mov eax, dword [ebp - 0x4c]
call fcn.00403f8c
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403f8c
mov edx, eax
mov ecx, 0x3c
pop eax
call fcn.00415224
push dword [ebp - 0x14]
push 0x415a28
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.004073e4
push dword [ebp - 0x54]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00403e4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415a19
lea eax, [ebp - 0x54]
mov edx, 0xd
call fcn.00403b14
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403b14
lea eax, [ebp - 4]
call fcn.00403af0
ret