Function at 0x4b2cc0
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x114
mov eax, 0x50ed96
call fcn.004d2c4d
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp byte [eax + 0x4d], 0
je 0x4b2ce1
mov al, 1
jmp 0x4b314e
xor ebx, ebx
xor eax, eax
mov edi, 0x531778
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 [0x531778], ax
je 0x4b2d0e
push edi
call fcn.004d828d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004087d4
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x58]
call fcn.00463800
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00404a9e
mov eax, dword [esi + 0x68]
add eax, 4
push eax
call fcn.004b5c10
test al, al
je 0x4b2e77
mov eax, dword [esi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4b2d59
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x118]
call fcn.00409419
mov byte [ebp - 4], 3
mov edi, 0x52bd38
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x120], 0x52bc2c
mov byte [ebp - 4], 4
mov dword [ebp - 0x120], 0x5320f8
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x120]
push ebx
push eax
lea ecx, [ebp - 0x110]
call fcn.00496c56
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.004648e0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4b2dcb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409419
mov byte [ebp - 4], 8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
call fcn.004971c9
mov dword [esi + 0x60], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a9e
cmp dword [esi + 0x60], ebx
je 0x4b2e4a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0047c254
mov byte [ebp - 4], 3
mov dword [ebp - 0x120], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x4b2ec6
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0047c254
mov byte [ebp - 4], 3
mov dword [ebp - 0x120], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x4b2ecf
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.004648e0
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [ecx + 0x14], 8
jb 0x4b2e91
mov ecx, dword [ecx]
mov eax, dword [esi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4b2e9f
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
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.00404a9e
add bl, 1
je 0x4b2ecd
xor ebx, ebx
xor edi, edi
jmp 0x4b313d
xor ebx, ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.004648e0
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 8
jb 0x4b2ee7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409419
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x114]
mov ecx, dword [esi + 0x68]
push eax
add ecx, 0xbc
call fcn.0047a5d5
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a9e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.004648e0
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
jb 0x4b2f45
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.00404a9e
mov ecx, dword [esi + 0x68]
lea eax, [ecx + 4]
add ecx, 0x1c
push eax
call fcn.0040423c
mov ecx, dword [esi + 0x68]
call fcn.004b1fed
test al, al
je 0x4b2fca
xor eax, eax
mov dword [ebp - 0x18], ebx
mov edi, str.OriginalDatabase
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d828d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004087d4
mov byte [ebp - 4], 0x17
mov ecx, dword [esi + 0x68]
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b1e7c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00404a9e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.004648e0
mov byte [ebp - 4], 0x18
mov ecx, dword [esi + 0x68]
push eax
add ecx, 4
call fcn.0040c794
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a9e
mov eax, dword [esi + 0x68]
mov edi, str.SourceDir
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push edi
mov byte [eax + 0x4d], 1
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d828d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004087d4
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x28]
mov ecx, dword [esi + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b1f34
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x10], ebx
sete bl
mov byte [ebp - 4], 0x19
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.00404a9e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00404a9e
test bl, bl
je 0x4b313b
mov eax, dword [esi + 0x68]
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x114], esp
mov ecx, esp
push eax
call fcn.00409d95
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00462fb0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00464d30
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
push eax
call fcn.00464f40
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x70]
push edi
push 1
call fcn.00404a9e
xor eax, eax
mov dword [ebp - 0x18], edi
mov ebx, str.SourceDir
mov dword [ebp - 0x14], edi
push ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.004d828d
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004087d4
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.004633d0
mov byte [ebp - 4], 0x21
mov ecx, dword [esi + 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b1e7c
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x70]
push edi
push 1
call fcn.00404a9e
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00404a9e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.00404a9e
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push edi
push 1
call fcn.00404a9e
mov al, bl
call fcn.004d2bf7
ret