Function at 0x41a710
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195c2
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x638], ecx
and dword [ebp - 0x630], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004b0090
add esp, 0xc
and dword [ebp - 0x62c], 0
and dword [ebp - 0x634], 0
mov eax, dword [0x577004]
mov dword [ebp - 0x654], eax
push 0
push dword [ebp - 0x654]
lea eax, [ebp - 0x62c]
push eax
mov ecx, dword [ebp - 0x638]
add ecx, 0x10
call fcn.0041c434
lea ecx, [ebp - 0x67c]
call fcn.00416746
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x41ab66
cmp dword [ebp - 0x62c], 0
je 0x41ab66
mov ecx, dword [ebp + 0x18]
call fcn.0040a5f1
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5310f0
lea ecx, [ebp - 0x67c]
call fcn.004174dd
cmp dword [ebp - 0x634], 3
jge 0x41ab66
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x24]
test eax, eax
je 0x41aa28
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x44]
push 0x53110c
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x30]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41a863
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x38]
test eax, eax
je 0x41a863
mov dword [ebp - 0x63c], 1
jmp 0x41a86a
and dword [ebp - 0x63c], 0
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 0x630], eax
push 0x531130
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x30]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41a8bc
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x38]
test eax, eax
je 0x41a8bc
mov dword [ebp - 0x640], 1
jmp 0x41a8c3
and dword [ebp - 0x640], 0
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x630], eax
push 0x531148
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x30]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41a915
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x38]
test eax, eax
je 0x41a915
mov dword [ebp - 0x644], 1
jmp 0x41a91c
and dword [ebp - 0x644], 0
mov eax, dword [ebp - 0x644]
mov dword [ebp - 0x630], eax
push 0x531160
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x30]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41a974
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x54]
test eax, eax
je 0x41a974
mov dword [ebp - 0x648], 1
jmp 0x41a97b
and dword [ebp - 0x648], 0
mov eax, dword [ebp - 0x648]
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x3c]
push 0x531170
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x30]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41a9e4
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
call dword [eax + 0x54]
test eax, eax
je 0x41a9e4
mov dword [ebp - 0x64c], 1
jmp 0x41a9eb
and dword [ebp - 0x64c], 0
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41aa11
mov eax, dword [ebp - 0x634]
add eax, 3
mov dword [ebp - 0x634], eax
jmp 0x41aa23
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x67c]
call fcn.0041cc2d
jmp 0x41ab61
mov eax, dword [ebp - 0x634]
inc eax
mov dword [ebp - 0x634], eax
push 0x410
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.004b0090
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
mov ecx, dword [ebp - 0x638]
add ecx, 0x10
call fcn.0041c4bb
mov eax, dword [0x577004]
mov dword [ebp - 0x658], eax
push 0
push dword [ebp - 0x658]
lea eax, [ebp - 0x62c]
push eax
mov ecx, dword [ebp - 0x638]
add ecx, 0x10
call fcn.0041c434
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x67c]
call fcn.0041cc2d
push str..backup
lea eax, [ebp - 0x218]
push eax
push 0x5311a0
push 0
push 0x208
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x663]
push eax
call fcn.0041ccf6
add esp, 0x1c
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41aafd
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41aafd
mov dword [ebp - 0x650], 1
jmp 0x41ab04
and dword [ebp - 0x650], 0
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x41ab61
push 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x67c]
call fcn.00416ecd
test eax, eax
je 0x41ab61
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x65c], eax
mov eax, dword [ebp - 0x65c]
and eax, 1
je 0x41ab61
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x41a7df
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x660], eax
mov dword [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x678]
call fcn.004167ab
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0x14