Function at 0x1400ae870
Capabilities:
Create thread
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov r14, r8
mov r13, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
xor ecx, ecx
movzx r15d, ax
lea r8d, [rcx + 7]
mov edx, 0x93
mov dword [rsp + 0x34], r15d
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
cmp r15d, eax
jne 0x1400ae906
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [0x140001b00]
movsxd r9, ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbp, qword [rsp + 0x110]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rax + rbp], 0
jne 0x1400ae915
imul eax, dword [rsp + 0x118]
mov r12d, dword [rsp + 0x120]
sub r12d, eax
mov rax, rsi
add r12d, r13d
nop word [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x1400ae940
sub r12d, eax
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x1400ae950
add r12d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
movsxd r13, eax
mov dword [rsp + 0x38], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
mov dword [rsp + 0x90], 1
movsx rdx, r13b
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400ae990
mov r11, qword [rsp + 0x48]
mov r9, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x120]
imul ecx, r9d
mov eax, r11d
imul eax, r15d
add eax, edx
add eax, ecx
lea ecx, [rax + r8*2]
mov rax, rsi
inc rax
cmp byte [r14 + rax], 0
jne 0x1400ae9c4
add ecx, 0xfffffffe
add ecx, eax
mov rax, rsi
inc rax
cmp byte [rax + rbp], 0
jne 0x1400ae9d6
add ecx, eax
mov dword [rsp + 0x94], ecx
mov rcx, rsi
nop dword [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400ae9f0
mov r10, qword [rsp + 0x108]
mov eax, r8d
sub eax, edx
lea edx, [r15 + 3]
sub eax, dword [rsp + 0x40]
sub eax, dword [rsp + 0x118]
sub eax, ebx
add eax, r10d
add ecx, eax
movzx eax, byte [rsp + 0x50]
add edx, ecx
mov rcx, qword [rsp + 0x90]
shr rcx, 0x20
mov dword [rsp + 0x30], edx
imul cl
movzx r13d, al
mov al, 7
mov rcx, rsi
imul dl
sub r13b, al
add r13b, 0x10
movsx rdx, r13b
nop dword [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400aea50
imul ecx, r10d
lea eax, [rbx*8]
imul ecx, r9d
sub ecx, eax
mov rax, qword [rsp + 0x40]
sub ecx, edx
add eax, 3
mov edx, 0xbf
sub ecx, r8d
sub ecx, r11d
add eax, ecx
xor ecx, ecx
lea r8d, [rcx + 0x15]
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x78], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rsi
mov qword [rsp + 0x60], rax
inc rcx
cmp byte [rcx + rbp], 0
jne 0x1400aeaa4
movzx eax, byte [rsp + 0x118]
shl bl, 2
sub bl, byte [rsp + 0x108]
add bl, 0xa
imul cl
add bl, bl
lea r15d, [rbx + rax]
mov al, 7
imul byte [rsp + 0x50]
add r15b, al
mov rax, rsi
sub r15b, byte [rsp + 0x34]
sub r15b, byte [rsp + 0x40]
sub r15b, byte [rsp + 0x48]
inc rax
cmp byte [rdi + rax], 0
jne 0x1400aeae5
add r15b, al
add r15b, byte [rsp + 0xf8]
add r15b, byte [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 0x74
lea r8d, [rdx - 0x73]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x99
lea r8d, [rcx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movsxd rbx, dword [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [0x140001b00]
xor edx, edx
mov r9, rbx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x140001b00]
mov r9, rbx
mov qword [rsp + 0x70], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x1400aeb80
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x1400aeb90
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x120]
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0xf8]
imul cl
lea ebx, [rax - 3]
movzx eax, r15b
add bl, bl
imul byte [rsp + 0x68]
lea ecx, [rax + 7]
movzx eax, byte [rsp + 0x60]
imul cl
add bl, al
movzx eax, byte [rsp + 0x48]
imul byte [rsp + 0x40]
movzx ecx, al
shl cl, 2
add al, cl
add bl, al
mov rax, rsi
sub bl, r12b
sub bl, byte [rsp + 0x118]
sub bl, r13b
inc rax
cmp byte [rdi + rax], 0
jne 0x1400aebf1
add bl, al
add bl, byte [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rsi
mov rdx, rax
nop dword [rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x1400aec10
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x1400aec20
mov r9, qword [rsp + 0x108]
imul ecx, eax
imul ecx, r9d
nop dword [rax + rax]
inc rsi
cmp byte [rdi + rsi], 0
jne 0x1400aec40
imul esi, dword [rsp + 0xf8]
mov r8, qword [rsp + 0x118]
movsx eax, bl
mov rbx, qword [rsp + 0xf0]
add ecx, esi
imul eax, edx
mov rdx, qword [rsp + 0x60]
add ecx, eax
lea eax, [r8 + 5]
imul eax, r9d
add ecx, eax
mov rax, qword [rsp + 0x78]
imul eax, edx
imul eax, eax, 7
add ecx, eax
mov eax, dword [rsp + 0x58]
lea ecx, [rcx + rax*2]
movsx rax, r15b
sub ecx, eax
movsx rax, r13b
sub ecx, eax
mov eax, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x50]
add eax, 0xfffffff1
sub ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x120]
sub ecx, r12d
sub ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x48]
add ecx, dword [rsp + 0x70]
add ecx, edx
add ecx, r8d
add eax, ecx
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret