Function at 0x4b291b
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x114
mov eax, 0x5130af
call fcn.004d0e17
mov edi, ecx
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x65], 0
je 0x4b293c
mov al, 1
jmp 0x4b2c8b
push 0x53a660
lea ecx, [ebp - 0x40]
call fcn.004042a7
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x40]
push ebx
lea ecx, [ebp - 0x58]
call fcn.004677d0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004050c4
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004b5747
test al, al
je 0x4b2c91
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4b2989
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040d264
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
mov edx, dword [edi + 0xc8]
call fcn.00489998
mov eax, ecx
mov dword [ebp - 0x120], 0x53b034
push ebx
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x11c], edx
call fcn.00496b5b
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00469200
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4b29e5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.0040d264
mov byte [ebp - 4], 6
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
call fcn.00497163
mov dword [edi + 0x60], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.0040cf54
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004050c4
cmp dword [edi + 0x60], ebx
je 0x4b2a68
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x110]
call fcn.00488c13
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x118]
lea ecx, [eax - 0x10]
call fcn.0040cf54
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050c4
xor al, al
jmp 0x4b2c8b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x110]
call fcn.00488c13
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.0040cf54
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00469200
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x4b2aa1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.0040d264
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x114]
mov ecx, dword [edi + 0x68]
push eax
add ecx, 0xd4
call fcn.004886e5
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.0040cf54
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004050c4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00469200
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 8
jb 0x4b2afc
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
add ecx, 0x1c
push eax
call fcn.00405125
mov ecx, dword [edi + 0x68]
call fcn.004b1dc0
test al, al
je 0x4b2b5c
push str.OriginalDatabase
lea ecx, [ebp - 0x40]
call fcn.004042a7
mov byte [ebp - 4], 0x13
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b1c59
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004050c4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00469200
mov byte [ebp - 4], 0x14
mov ecx, dword [edi + 0x68]
push eax
add ecx, 4
call fcn.00404252
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x40]
push str.SourceDir
mov byte [eax + 0x65], 1
call fcn.004042a7
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x40]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b1cfd
mov byte [ebp - 4], 0x16
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004050c4
test esi, esi
jne 0x4b2c7b
mov eax, dword [edi + 0x68]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x114], esp
add eax, 0x1c
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040479a
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004661c0
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00469c40
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x40]
push eax
call fcn.0045a6a0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
call fcn.004050c4
push str.SourceDir
lea ecx, [ebp - 0x28]
call fcn.004042a7
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00466d90
mov byte [ebp - 4], 0x1d
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b1c59
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x70]
call fcn.004050c4
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004050c4
or dword [ebp - 4], 0xffffffff
mov bl, 1
lea ecx, [ebp - 0x58]
call fcn.004050c4
mov al, bl
call fcn.004d0dc1
ret
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00469200
mov ecx, eax
mov byte [ebp - 4], 0xc
cmp dword [ecx + 0x14], 8
jb 0x4b2cab
mov ecx, dword [ecx]
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4b2cb9
mov eax, dword [eax]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004050c4
test esi, esi
jne 0x4b2a89
or dword [ebp - 4], 0xffffffff
jmp 0x4b2c81