Function at 0x40c740
Capabilities:
Check if file exists
Copy file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5564a8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5b627c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004137c0
add esp, 4
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push eax
call fcn.00422620
mov ecx, eax
call fcn.004225f0
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x44]
sub eax, 0x10
push eax
call fcn.0040c650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x54]
xor edi, edi
or ebx, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], edi
je 0x40ca92
mov eax, 0x88dc
mov ebx, 0xf
mov word [ebp - 0x2c], ax
mov eax, 0x88db
mov word [ebp - 0x2a], ax
mov eax, 0x88fb
mov word [ebp - 0x28], ax
mov eax, 0x88e9
mov word [ebp - 0x26], ax
mov eax, 0x88ec
mov word [ebp - 0x24], ax
mov eax, 0x88f7
mov word [ebp - 0x22], ax
mov eax, 0x88d1
mov word [ebp - 0x20], ax
mov eax, 0x88b6
mov word [ebp - 0x1e], ax
mov eax, 0x88fe
mov word [ebp - 0x1c], ax
mov eax, 0x88a0
mov word [ebp - 0x1a], ax
mov eax, 0x88e5
mov word [ebp - 0x18], ax
mov eax, 0x88f9
mov word [ebp - 0x16], ax
mov eax, 0x88f5
mov word [ebp - 0x14], ax
mov eax, 0x8890
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x2c]
mov ax, word [ebp + edi*2 - 0x2c]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0xd6e98885
mov edx, 0xb8285e09
cmovae ecx, ebx
shl ecx, 2
call fcn.00466140
and ax, 0xf
lea ecx, [edi - 0x777b]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x2c], ax
inc edi
cmp edi, 0xe
jb 0x40c846
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00407e40
add esp, 0xc
mov eax, 0x88dc
mov byte [ebp - 4], 3
mov word [ebp - 0x48], ax
xor edi, edi
mov eax, 0x88db
or ebx, 0xffffffff
mov word [ebp - 0x46], ax
mov eax, 0x88fb
mov word [ebp - 0x44], ax
mov eax, 0x88e9
mov word [ebp - 0x42], ax
mov eax, 0x88ec
mov word [ebp - 0x40], ax
mov eax, 0x88f7
mov word [ebp - 0x3e], ax
mov eax, 0x88d1
mov word [ebp - 0x3c], ax
mov eax, 0x88b6
mov word [ebp - 0x3a], ax
mov eax, 0x88fe
mov word [ebp - 0x38], ax
mov eax, 0x88a0
mov word [ebp - 0x36], ax
mov eax, 0x88e5
mov word [ebp - 0x34], ax
mov eax, 0x88f9
mov word [ebp - 0x32], ax
mov eax, 0x88f5
mov word [ebp - 0x30], ax
mov eax, 0x8890
mov word [ebp - 0x2e], ax
mov ax, word [ebp - 0x48]
mov ax, word [ebp + edi*2 - 0x48]
mov ecx, edi
and ecx, 0xf
movzx esi, ax
cmp ecx, 0xf
mov eax, 0xf
mov edx, 0xb8285e09
cmovae ecx, eax
mov eax, 0xd6e98885
shl ecx, 2
call fcn.00466140
and ax, 0xf
lea ecx, [edi - 0x777b]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x48], ax
inc edi
cmp edi, 0xe
jb 0x40c923
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00407e40
add esp, 0xc
push dword [ebp - 0x50]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 4
call esi
test eax, eax
je 0x40ca54
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x4c]
call esi
push 0x569bb8
test eax, eax
jne 0x40cb13
lea ecx, [ebp - 0x60]
call fcn.00406260
push 0x569bb8
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00406260
push str.7z_copy_fail
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00406260
mov byte [ebp - 4], 7
call fcn.00453ec0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
mov edx, dword [eax]
push ecx
push 1
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x58]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5c]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov edx, dword [ebp - 0x4c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cab0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x40cad6
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40cad6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40cad6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40caf5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465d1b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x6c]
call fcn.00406260
push 0x569bb8
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00406260
push str.7z_copy_success
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call fcn.00406260
mov byte [ebp - 4], 0xa
call fcn.00453ec0
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x68]
mov edx, dword [eax]
push ecx
push 1
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x64]
mov eax, ebx
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cb78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cb96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cbb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
jmp 0x40ca56