Function at 0x560200
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 0x5ffb59
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x69001c]
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 - 0x128], edi
mov dword [ebp - 0x124], 0
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x65], 0
jne 0x5607e8
push 0
push 0
mov edx, 0x632fe8
lea ecx, [ebp - 0x74]
call fcn.0040ad90
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.00564940
test al, al
je 0x560404
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x56029d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x120]
call fcn.00416940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
mov eax, dword [edi + 0xc8]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x130]
push 0
push eax
mov dword [ebp - 0x130], 0x633a08
call fcn.0052aa90
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.004f1640
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x5602f3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00416940
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x20]
call fcn.004fa910
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov eax, dword [eax + 0x4c]
lea ecx, [ebp - 0x118]
call eax
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.004ea3f0
mov dword [edi + 0x60], esi
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x11c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x56037c
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.004075e0
cmp dword [edi + 0x60], 0
je 0x5603d2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0050ff90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x120]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x5603bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004075e0
xor al, al
jmp 0x5607ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0050ff90
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x560450
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x560450
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.004f1640
mov ecx, eax
mov byte [ebp - 4], 0xb
cmp dword [ecx + 0x14], 8
jb 0x56041e
mov ecx, dword [ecx]
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x56042c
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.004075e0
test esi, esi
jne 0x56044d
jmp 0x5603bc
or esi, 0xffffffff
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x74]
add eax, 0xc8
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004f1640
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
jb 0x560476
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00416940
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
push eax
call fcn.0050f1e0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x5604b7
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.004075e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.004f1640
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x5604db
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.004075e0
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 4]
lea edx, [ecx + 0x1c]
cmp edx, eax
je 0x560517
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x56050b
mov eax, dword [eax]
push ecx
push eax
mov ecx, edx
call fcn.00406e80
mov ecx, dword [edi + 0x68]
call fcn.0055ec50
test al, al
je 0x560580
mov edi, dword [edi + 0x68]
lea ecx, [ebp - 0x2c]
push 0x10
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea esi, [edi + 4]
push str.OriginalDatabase
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00406e80
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x2c]
push esi
push eax
mov ecx, edi
call fcn.0055e9d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004075e0
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.004f1640
mov esi, eax
mov byte [ebp - 4], 0x13
mov eax, dword [edi + 0x68]
add eax, 4
mov dword [ebp - 0x11c], eax
cmp eax, esi
je 0x5605d2
mov ecx, eax
call fcn.004075e0
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x11c]
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.004075e0
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x2c]
push 9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [eax + 0x65], 1
xor eax, eax
mov esi, dword [edi + 0x68]
mov dword [ebp - 0x18], 0
push str.SourceDir
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00406e80
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0055eb50
mov byte [ebp - 4], 0x15
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x44]
call fcn.004075e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004075e0
test esi, esi
jne 0x5607d9
mov eax, dword [edi + 0x68]
push 1
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x11c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004f1d70
mov byte [ebp - 4], 0x1a
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x124], 1
call fcn.004f0670
lea ecx, [ebp - 0x44]
call fcn.004075e0
movups xmm0, xmmword [ebp - 0x2c]
mov edi, 1
xor eax, eax
mov word [ebp - 0x2c], ax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x1c]
mov dword [ebp - 0x124], edi
and edi, 0xfffffffe
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x124], edi
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.004075e0
mov esi, dword [ebp - 0x128]
mov esi, dword [esi + 0x68]
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004f1640
or edi, 2
lea ecx, [ebp - 0x2c]
push 0x5c
mov dword [ebp - 0x124], edi
call fcn.0040c270
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
push 9
push str.SourceDir
lea ecx, [ebp - 0x5c]
call fcn.00406e80
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.0055e9d0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x5c]
call fcn.004075e0
and edi, 0xfffffffd
mov dword [ebp - 0x124], edi
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.004075e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004075e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004075e0
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.0059046a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret