Function at 0x4ae775
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x114
mov eax, 0x510a21
call fcn.004cea37
mov edi, ecx
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x65], 0
je 0x4ae796
mov al, 1
jmp 0x4aebfb
xor ebx, ebx
xor eax, eax
mov esi, 0x5377ac
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 [0x5377ac], ax
je 0x4ae7c3
push esi
call fcn.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407ba8
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x58]
call fcn.00465ca0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.004048ce
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004b1d06
test al, al
je 0x4ae92b
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4ae80e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x118]
call fcn.00409ea5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
mov edx, dword [edi + 0xc8]
call fcn.004844cc
mov byte [ebp - 4], 4
mov dword [ebp - 0x120], 0x538150
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 5
mov eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x110]
call fcn.004915d3
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00466ec0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4ae872
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409ea5
mov byte [ebp - 4], 8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
call fcn.00491bbf
mov dword [edi + 0x60], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.004048ce
cmp dword [edi + 0x60], ebx
je 0x4ae8f9
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0048370d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.004071f6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
jmp 0x4aebe9
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0048370d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.004071f6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
jmp 0x4ae980
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00466ec0
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [ecx + 0x14], 8
jb 0x4ae945
mov ecx, dword [ecx]
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4ae953
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.004048ce
add bl, 1
je 0x4ae97e
xor ebx, ebx
jmp 0x4aebe9
xor ebx, ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00466ec0
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 8
jb 0x4ae998
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409ea5
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x114]
mov ecx, dword [edi + 0x68]
push eax
add ecx, 0xd4
call fcn.0048317f
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.004048ce
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00466ec0
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
jb 0x4ae9f6
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.004048ce
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
add ecx, 0x1c
push eax
call fcn.0040405c
mov ecx, dword [edi + 0x68]
call fcn.004ad9b8
test al, al
je 0x4aea7b
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.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407ba8
mov byte [ebp - 4], 0x17
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ad83a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.004048ce
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00466ec0
mov byte [ebp - 4], 0x18
mov ecx, dword [edi + 0x68]
push eax
add ecx, 4
call fcn.0040f1ab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.004048ce
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.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407ba8
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x28]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004ad8f2
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.004048ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.004048ce
test esi, esi
jne 0x4aebe7
mov eax, dword [edi + 0x68]
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x114], esp
mov ecx, esp
push eax
call fcn.0040a832
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00465390
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00467650
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
push eax
call fcn.0045cc80
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.004048ce
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.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407ba8
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00465870
mov byte [ebp - 4], 0x21
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ad83a
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.004048ce
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.004048ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.004048ce
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.004048ce
mov al, bl
call fcn.004ce9e1
ret