Function at 0x4aded0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e1e7
mov eax, dword fs:[0]
push eax
sub esp, 0xac0
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xacc]
push 0x2a0
push 0
push eax
call fcn.00509680
add esp, 0xc
lea ecx, [ebp - 0xacc]
call fcn.004a2570
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push eax
mov ecx, esi
call fcn.004b78c0
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00415760
add esp, 8
test eax, eax
jne 0x4adfca
mov eax, dword [esi + 4]
test eax, eax
je 0x4adf87
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push eax
imul eax, dword [esi + 8], 0x208
add eax, 0x5906c0
push eax
call fcn.0048f340
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00415760
add esp, 0x18
test eax, eax
jne 0x4adfca
test byte [esi + 0x10], 1
je 0x4ae236
lea eax, [ebp - 0x828]
push 0x100
push eax
call fcn.0048a250
add esp, 8
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0048ed30
add esp, 4
push eax
push 0x2f5f
call fcn.00489f40
add esp, 0xc
xor esi, esi
jmp 0x4ae23b
test byte [esi + 0x10], 4
mov ebx, dword [ebp + 0xc]
je 0x4adffd
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push 1
push ebx
call fcn.004b7850
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00415760
add esp, 8
test eax, eax
jne 0x4ae236
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push 1
push ebx
call fcn.004b7850
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xacc]
call fcn.004a2910
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x420]
push eax
xor eax, eax
mov ecx, esi
test edi, edi
setg al
push eax
push ebx
call fcn.004b7850
test edi, edi
jle 0x4ae063
call fcn.004b8c80
test eax, eax
je 0x4ae21c
lea eax, [ebp - 0x218]
push eax
push 0x592d58
call fcn.00414af0
add esp, 8
jmp 0x4ae07d
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x4ae065
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov edi, 3
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x218]
dec edi
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4ae149
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00415760
add esp, 8
test eax, eax
je 0x4ae0df
push 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0048e230
add esp, 0xc
test eax, eax
jg 0x4ae149
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4ae0f3
push 1
push 0x1f4
call ebx
test edi, edi
jg 0x4ae090
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4ae114
push 1
push dword [ebp + 0xc]
push esi
call fcn.004aded0
add esp, 0xc
test eax, eax
jne 0x4ae236
test byte [esi + 0x10], 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
je 0x4ae220
call fcn.0048ed30
add esp, 4
push eax
push 0x2f4f
call fcn.00489f40
add esp, 0xc
xor esi, esi
jmp 0x4ae23b
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4ae236
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xacc]
call fcn.004a27f0
test eax, eax
je 0x4ae1f2
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0
call fcn.00405440
mov byte [ebp - 4], 1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x82c]
push str.file__s_is_in_use
push eax
call fcn.00407a60
add esp, 0xc
lea eax, [ebp - 0x82c]
mov ecx, 0x592f94
push eax
push dword [0x592f9c]
call fcn.004f1c05
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x82c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ae236
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ae236
test byte [esi + 0x10], 1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
je 0x4ae220
call fcn.0048ed30
add esp, 4
push eax
push 0x2f4f
call fcn.00489f40
add esp, 0xc
xor esi, esi
jmp 0x4ae23b
call fcn.0048ed30
add esp, 4
push eax
push 0x2f4f
call fcn.0048a670
add esp, 0xc
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xacc], 0x54fa3c
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x870]
call fcn.00467ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac8]
call fcn.004a18f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret