Function at 0x4acee4
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x114
mov eax, 0x50def1
call fcn.004cc2a7
mov edi, ecx
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x65], 0
je 0x4acf05
mov al, 1
jmp 0x4ad36a
xor ebx, ebx
xor eax, eax
mov esi, 0x533cdc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [0x533cdc], ax
je 0x4acf32
push esi
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407b30
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x58]
call fcn.00465f10
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040487e
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004b0234
test al, al
je 0x4ad09a
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4acf7d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x118]
call fcn.00409a3c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
mov edx, dword [edi + 0xa8]
call fcn.00483761
mov byte [ebp - 4], 4
mov dword [ebp - 0x120], 0x534698
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 5
mov eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x110]
call fcn.00497758
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00467040
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4acfe1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409a3c
mov byte [ebp - 4], 8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
call fcn.00497d44
mov dword [edi + 0x60], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406ba9
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
cmp dword [edi + 0x60], ebx
je 0x4ad068
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.00490ce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.004071a6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406ba9
jmp 0x4ad358
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.00490ce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.004071a6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406ba9
jmp 0x4ad0ef
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00467040
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [ecx + 0x14], 8
jb 0x4ad0b4
mov ecx, dword [ecx]
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4ad0c2
mov eax, dword [eax]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040487e
add bl, 1
je 0x4ad0ed
xor ebx, ebx
jmp 0x4ad358
xor ebx, ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00467040
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 8
jb 0x4ad107
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409a3c
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x114]
mov ecx, dword [edi + 0x68]
push eax
add ecx, 0xd4
call fcn.00482964
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406ba9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00467040
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
jb 0x4ad165
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
add ecx, 0x1c
push eax
call fcn.0040400c
mov ecx, dword [edi + 0x68]
call fcn.004ac165
test al, al
je 0x4ad1ea
xor eax, eax
mov dword [ebp - 0x18], ebx
mov esi, str.OriginalDatabase
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407b30
mov byte [ebp - 4], 0x17
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004abfe7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040487e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00467040
mov byte [ebp - 4], 0x18
mov ecx, dword [edi + 0x68]
push eax
add ecx, 4
call fcn.0040f13f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
mov eax, dword [edi + 0x68]
mov esi, str.SourceDir
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push esi
mov byte [eax + 0x65], 1
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407b30
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x28]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004ac09f
mov byte [ebp - 4], 0x1a
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040487e
test esi, esi
jne 0x4ad356
mov eax, dword [edi + 0x68]
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x114], esp
mov ecx, esp
push eax
call fcn.0040a3c1
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004656c0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00467480
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
push eax
call fcn.0045d0d0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.0040487e
xor eax, eax
mov dword [ebp - 0x18], ebx
mov esi, str.SourceDir
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407b30
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00465ae0
mov byte [ebp - 4], 0x21
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004abfe7
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0040487e
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.0040487e
mov al, bl
call fcn.004cc251
ret