Function at 0x4f4850
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5675ab
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x124], edi
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x65], 0
jne 0x4f4d15
push 0
push 0
mov edx, 0x59215c
lea ecx, [ebp - 0x5c]
call fcn.00408440
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004f8fe0
or esi, 0xffffffff
test al, al
je 0x4f4a11
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4f48e6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004144e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
mov eax, dword [edi + 0xc8]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x12c]
push 0
push eax
mov dword [ebp - method.std::_Iostream_error_category.virtual_0], 0x592b84
call fcn.004c12d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00485a90
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4f493c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x120]
call fcn.004144e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
call fcn.004c1e60
mov dword [edi + 0x60], eax
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f4989
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00407c80
cmp dword [edi + 0x60], 0
je 0x4f49df
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004a4bb0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4f49c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407c80
xor al, al
jmp 0x4f4d17
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004a4bb0
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f4a5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4f4a5d
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00485a90
mov ecx, eax
mov byte [ebp - 4], 0xa
cmp dword [ecx + 0x14], 8
jb 0x4f4a2b
mov ecx, dword [ecx]
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4f4a39
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407c80
test esi, esi
jne 0x4f4a5a
jmp 0x4f49c9
or esi, 0xffffffff
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x5c]
add eax, 0xc8
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00485a90
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x4f4a83
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x120]
call fcn.004144e0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
push eax
call fcn.004a3dd0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4f4ac4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407c80
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00485a90
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x4f4ae8
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
lea edx, [ecx + 0x1c]
cmp edx, eax
je 0x4f4b24
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4f4b18
mov eax, dword [eax]
push ecx
push eax
mov ecx, edx
call fcn.004079c0
mov ecx, dword [edi + 0x68]
call fcn.004f34d0
test al, al
je 0x4f4b62
mov edi, dword [edi + 0x68]
lea ecx, [ebp - 0x2c]
push str.OriginalDatabase
lea esi, [edi + 4]
call fcn.00406650
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2c]
push esi
push eax
mov ecx, edi
call fcn.004f3110
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407c80
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00485a90
mov esi, eax
mov byte [ebp - 4], 0x12
mov eax, dword [edi + 0x68]
add eax, 4
mov dword [ebp - 0x124], eax
cmp eax, esi
je 0x4f4bb4
mov ecx, eax
call fcn.00407c80
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x124]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x2c]
push 9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [eax + 0x65], 1
xor eax, eax
mov esi, dword [edi + 0x68]
push str.SourceDir
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004079c0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.004f3340
mov byte [ebp - 4], 0x14
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407c80
test esi, esi
jne 0x4f4d06
mov eax, dword [edi + 0x68]
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x124], esp
mov ecx, esp
push eax
call fcn.00406d00
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00484e80
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00484990
mov esi, eax
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4f4ca4
mov ecx, eax
call fcn.00407c80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov edi, dword [edi + 0x68]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00485030
mov esi, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x44]
push str.SourceDir
call fcn.00406650
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x44]
push esi
push eax
mov ecx, edi
call fcn.004f3110
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x74]
call fcn.00407c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407c80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret