Function at 0x1400d3490
Capabilities:
Copy file
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf8
movzx r12d, cl
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rsi, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, r12d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, r12d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, r12d
sub bl, al
mov qword [rsp + 0x48], rax
imul ebp, r12d
sub bl, r13b
add bl, r14b
movsx edi, bl
sub ebp, edi
sub ebp, r15d
sub ebp, r12d
add ebp, r14d
add ebp, esi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
movsx rsi, bl
xor ebx, ebx
lea r8, [0x140001b00]
xor edx, edx
mov r9, rsi
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x140001b00]
mov r9d, ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, str.c1ret
lea rcx, str.c1ret
mov r8d, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, ebx
mov eax, r12d
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov r8, rbx
imul ecx, ebp
sub eax, ecx
mov rdx, r14
mov rcx, r14
sub eax, edi
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x28], r12d
sub eax, r13d
mov dword [rsp + 0x20], r12d
sub eax, r12d
add eax, edi
mov dword [rsp + 0x150], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [rsp + 0x48]
imul ecx, r14d
mov eax, r15d
imul eax, edi
lea edx, [rax + rax*2]
lea eax, [r12 - 5]
sub edx, ecx
sub edx, r12d
sub edx, r12d
add eax, edx
mov dword [rsp + 0x140], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
mov edx, 0x28b
lea r8d, [rcx + 0x1d]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
lea eax, [rsi + rsi*4]
mov rsi, qword [rsp + 0x40]
mov dword [rsp + 0x148], eax
imul eax, ebp
mov ecx, eax
mov dword [rsp + 0x158], eax
sub ecx, dword [rsp + 0x140]
sub ecx, r14d
sub ecx, r15d
sub ecx, esi
add ecx, 6
add ecx, r12d
add ebx, ecx
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 5
xor ecx, ecx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movzx ecx, al
cmp r12d, ecx
jae 0x1400d3782
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbp, qword [rsp + 0x48]
mov qword [rsp + 0x68], r15
imul r15d, esi
imul r15d, r12d
mov dword [rsp + 0x60], eax
lea rax, str.c3a0
mov ecx, edi
mov qword [rsp + 0x70], rax
lea eax, [rbp + 1]
mov edx, 0x10
imul ecx, dword [rsp + 0x140]
lea r8d, [rdx + 0xc]
imul eax, r13d
sub r15d, eax
mov eax, dword [rsp + 0x148]
imul eax, dword [rsp + 0x150]
sub r15d, eax
lea eax, [r12 + r15]
add ecx, eax
lea eax, [rbx + 3]
add eax, ecx
xor ecx, ecx
mov dword [rsp + 0x78], eax
lea rax, str.brace
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movzx ecx, dil
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
mov qword [rsp + 0x88], rax
movzx eax, r13b
mov qword [rsp + 0x90], rbp
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xc0], xmm1
lea r9, str.c4a3
lea r8, str.c1ret
imul bl
imul ebx, r13d
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xd0], xmm0
sub cl, al
mov eax, r12d
movzx edx, cl
lea rcx, [rsp + 0x60]
imul eax, esi
imul eax, r12d
add edx, eax
mov rax, qword [rsp + 0x50]
sub edx, ebx
lea eax, [rax + rax*4]
sub edx, eax
lea eax, [rdi + rdi*8]
add edx, eax
lea eax, [rsi + 0x16]
sub edx, ebp
sub edx, r13d
add edx, dword [rsp + 0x158]
add eax, edx
lea rdx, [rsp + 0xb0]
mov dword [rsp + 0x98], eax
movaps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0xe0], xmm1
call fcn.1400db620
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rax, str.cart
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret