Function at 0x14000a060
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov byte [rsp + 8], cl
push rbp
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x28]
sub rsp, 0x128
movsx r13d, cl
lea rcx, str.sheet
mov esi, r8d
mov r14, rdx
call fcn.1400462f0
lea r8, str.sneakers
lea rdx, str.c0a0
lea rcx, [rsp + 0x50]
mov r9, r14
mov rdi, rax
call fcn.14003c660
mov r12d, r13d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp - 0x30], xmm1
movsd xmm1, qword [rax + 0x30]
movups xmmword [rbp - 0x20], xmm0
movsd qword [rbp - 0x10], xmm1
cmp esi, r13d
jne 0x14000a31b
lea rax, str.pince_nez
mov qword [rsp + 0x120], rbx
mov ecx, r14d
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x118], r15
imul ecx, esi
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rdi + rax], 0
jne 0x14000a107
add eax, ecx
lea r15d, [r14*8]
add eax, r12d
mov dword [rbp - 0x68], eax
lea eax, [rcx - 5]
mov rcx, rbx
add eax, r15d
add eax, r12d
mov dword [rbp - 0x64], eax
nop
inc rcx
cmp byte [rdi + rcx], 0
jne 0x14000a130
mov eax, r12d
add esi, 0xd
sub eax, dword [rbp - 0x40]
add eax, r14d
sub eax, ecx
add eax, esi
mov dword [rbp - 0x60], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x68], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
movsx rsi, r13b
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x30]
mov ecx, r12d
lea eax, [rsi + rax*4]
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r8d, dword [rbp + 0x68]
movaps xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rbp - 0x60]
movdqa xmmword [rbp], xmm0
movsd qword [rsp + 0x60], xmm1
movups xmm0, xmmword [rbp - 0x70]
mov r13, rax
mov qword [rsp + 0x30], rax
lea eax, [rsi + rsi*4]
sub eax, r14d
lea r9, [rbp]
lea rcx, [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
add eax, dword [rbp - 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov dword [rbp + 0x78], eax
call fcn.140021df0
mov rcx, rbx
mov rsi, rax
lea rax, str.c1a1
mov qword [rsp + 0x50], rax
inc rcx
cmp byte [rdi + rcx], 0
jne 0x14000a1d6
mov r8d, dword [rbp - 0x10]
mov rax, rbx
lea edx, [r8 - 1]
imul edx, r14d
add edx, r12d
sub edx, ecx
inc rax
cmp byte [rsi + rax], 0
jne 0x14000a1f3
movsx rcx, byte [rbp + 0x60]
add edx, 0xfffffffb
imul r15d, r14d
add eax, edx
mov edx, dword [rsp + 0x48]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x68], 2
imul r13d, edx
add r15d, r13d
add r15d, ecx
mov dword [rsp + 0x6c], r15d
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14000a230
mov r15d, dword [rbp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x78], r14
lea eax, [r15 + r8*2]
lea r8d, [rcx + 6]
shl eax, 2
sub eax, dword [rsp + 0x30]
sub eax, edx
mov edx, 0x226
sub eax, dword [rbp + 0x68]
sub eax, r14d
add eax, r12d
add ebx, eax
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea ecx, [r15*4]
sub r14d, ecx
lea rdx, str.sneakers
mov r8d, r12d
lea ebx, [r12 + r14*2]
mov rcx, rsi
mov rdi, rax
add ebx, dword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rsp + 0x30], eax
movsx rax, byte [rbp + 0x60]
imul eax, dword [rbp - 0x64]
shl eax, 5
sub eax, r13d
sub eax, dword [rbp + 0x78]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x30]
movsd xmm0, qword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x60]
mov dword [rsp + 0x38], eax
lea rax, str.c2ret
lea rcx, [rbp - 0x70]
movsd qword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm1
mov qword [rsp + 0x28], rax
mov r8d, ebx
mov rdx, rdi
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rsp + 0x70]
mov qword [rsp + 0x20], 0
movaps xmmword [rbp - 0x50], xmm0
call fcn.140044ca0
mov r15, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
lea rax, str.frazzle
add rsp, 0x128
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret