Function at 0x1400302c0
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov esi, r9d
mov rbx, rcx
mov ecx, edx
mov r15, r8
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsxd r14, eax
mov dword [rsp + 0x30], r14d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
movsx rax, r14b
lea rdx, str.brace
mov r9, rax
mov r8, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov edi, eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x1400ed4d4]
lea rcx, str.meaning
movzx r8d, dil
call qword [sym.imp.KERNEL32.dll_CopyFileA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x58], rax
movsx eax, r14b
or r14, 0xffffffffffffffff
mov rcx, r14
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140030363
imul eax, esi
mov r13d, 0xffffffe7
imul eax, r12d
lea eax, [rax + rax*2]
sub r13d, eax
mov rax, r14
sub r13d, dword [rsp + 0x34]
sub r13d, ecx
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140030390
add r13d, eax
lea rax, str.c0a4
lea r9, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], r13d
lea r8, [0x1400edfe8]
movups xmm0, xmmword [rsp + 0x58]
movsd xmm1, qword [rsp + 0x68]
lea rdx, str.spite
mov rcx, r12
mov dword [rsp + 0x20], 1
movaps xmmword [rsp + 0x70], xmm0
movsd qword [rbp - 0x80], xmm1
call fcn.140081eb0
mov edi, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
cmp dil, sil
jne 0x140030455
mov rdi, r14
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1400303f5
mov eax, dword [rsp + 0x34]
lea eax, [rax + r12*4]
add eax, 0xfffffff5
add edi, eax
mov ecx, edi
call fcn.14006aa50
mov rdx, r14
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140030415
movsxd rcx, dword [rsp + 0x30]
imul edi, dword [rsp + 0x38]
imul edx, esi
movsx rax, cl
imul eax, dword [rsp + 0x40]
lea ecx, [rax + rax*4]
sub ecx, edi
add edx, ecx
xor ecx, ecx
lea edx, [rdx + r13*2]
sub edx, r12d
add edx, 9
call fcn.1400bdce0
call fcn.14007a350
mov edi, dword [rsp + 0x30]
xor ecx, ecx
mov edx, 0x11e
lea r8d, [rcx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140030480
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140030490
imul ecx, eax
lea eax, [r12 - 9]
movsx rdx, dil
lea eax, [rcx + rax*2]
xor ecx, ecx
sub eax, dword [rsp + 0x58]
lea r8d, [rcx + 6]
add eax, esi
add eax, edx
mov edx, 0x239
add eax, dword [rsp + 0x40]
mov dword [rsp + 0x54], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
lea r8d, [rcx + 0x16]
mov edx, 0xd3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [0x1400ee230]
mov rdi, rsi
mov esi, dword [rsp + 0x38]
mov qword [rbp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.spite
mov rcx, rax
mov r9, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdx, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x34]
movsx rcx, dil
sub edx, ecx
movzx ecx, al
lea r9d, [r12 + 5]
sub edx, ecx
add edx, eax
add edx, r11d
add r9d, edx
mov dword [rsp + 0x48], r9d
cmp r10d, 0x10
jae 0x14003058b
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, str.c0a4
lea rcx, [rsp + 0x70]
mov rdx, rax
xor r8d, r8d
call fcn.140073d50
mov r10d, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x48]
mov rdx, r14
nop
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140030590
mov eax, dword [rsp + 0x58]
mov esi, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x54]
lea eax, [rax + rax*4]
mov ecx, esi
sub ecx, eax
sub ecx, dword [rsp + 0x38]
lea eax, [r12 + rcx]
mov rcx, r14
add edx, eax
mov dword [rsp + 0x70], edx
imul r8d, r12d
inc rcx
cmp byte [r15 + rcx], 0
jne 0x1400305c2
mov rax, r14
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400305d0
add ecx, eax
mov eax, 0x2e
sub eax, r8d
add ecx, eax
mov rax, r14
mov dword [rsp + 0x74], ecx
nop dword [rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x1400305f0
mov rcx, r14
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140030600
mov edi, dword [rsp + 0x30]
add eax, r10d
add r9d, 3
add eax, ecx
movsx edx, dil
mov rcx, r14
imul edx, r12d
sub edx, esi
sub edx, r11d
add eax, edx
add eax, r9d
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x80], rax
movsxd rax, edi
movsx rdi, al
lea r9d, [rdi + rdi*8]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140030643
mov edx, dword [rsp + 0x38]
mov eax, r9d
sub eax, r10d
add edx, 0xfffffff1
sub eax, r11d
add eax, dword [rsp + 0x48]
add eax, r8d
add eax, edx
mov rdx, r14
add ecx, eax
mov dword [rbp - 0x78], ecx
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140030670
lea eax, [r12 + r12*4]
lea ecx, [rsi + 1]
lea ecx, [rcx + rax*4]
mov eax, 6
imul ecx, r12d
sub eax, ecx
sub eax, r11d
sub eax, edi
add edx, eax
mov dword [rbp - 0x74], edx
mov rdx, r14
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x1400306a0
imul edx, r10d
lea eax, [r12 + 1]
imul edx, esi
lea ecx, [rax + rax*2]
lea rax, str.c0a0
sub edx, ecx
mov qword [rbp - 0x68], rax
lea rax, [0x1400ed4d4]
sub edx, r9d
mov qword [rbp - 0x60], rax
add edx, dword [rsp + 0x40]
mov dword [rbp - 0x70], edx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea r9, [rbp - 0x40]
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rbp - 0x80]
lea rcx, [rsp + 0x70]
mov r8, r12
mov dl, 8
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbp - 0x70]
movsd xmm1, qword [rbp - 0x60]
mov rdi, rax
mov qword [rsp + 0x20], rax
movaps xmmword [rbp - 0x20], xmm0
movsd qword [rbp - 0x10], xmm1
call fcn.140097820
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [rax + 0x40]
movsd qword [rbp], xmm0
cmp r8b, dl
jl 0x140030763
call fcn.1400a4860
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov rax, qword [rbp - 0x20]
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140030770
imul ecx, edi
mov rax, r14
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140030780
imul eax, edx
movsx rdx, r8b
add ecx, eax
mov rax, qword [rsp + 0x40]
add eax, eax
sub eax, r13d
add eax, edx
lea eax, [rax + rax*2]
add ecx, eax
mov eax, dword [rbp + 0x40]
imul eax, dword [rsp + 0x3c]
add ecx, eax
lea eax, [rcx + r12*4]
sub eax, esi
add eax, dword [rsp + 0x38]
nop word [rax + rax]
inc r14
cmp byte [r15 + r14], 0
jne 0x1400307c0
sub eax, r14d
sub eax, 0x11
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret