Function at 0x1400af080
Capabilities:
Create thread
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x198
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15d, dword [rsp + 0x208]
mov rbx, qword [rsp + 0x200]
mov r12d, dword [rsp + 0x210]
movzx eax, r8b
mov rsi, rdx
xor edx, edx
mov r14d, r9d
mov r13, rcx
mov byte [rsp + 0x60], al
cmp r9d, r15d
jb 0x1400af119
mov ecx, dword [rbx + 0x10]
movzx eax, al
mov qword [rsp + 0x28], rdx
lea r8, [0x140001b00]
mov dword [rsp + 0x20], edx
imul ecx, eax
sub ecx, r12d
add ecx, r13d
add ecx, dword [rsi]
movsxd r9, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
xor ecx, ecx
lea r8d, [rcx + 0xf]
mov edx, 0x1dd
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], rax
mov rax, qword [rsi + 8]
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400af140
imul ecx, dword [rbx + 0x10]
mov ebp, r13d
sub ebp, ecx
add ebp, r15d
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, 0x104
mov rdi, rax
movzx eax, byte [rsi]
imul byte [rsp + 0x60]
movzx ecx, al
movzx eax, r14b
imul r15b
movzx esi, al
sub sil, cl
lea rcx, [rsp + 0x70]
sub sil, bpl
sub sil, r12b
add sil, r13b
add sil, bl
add sil, byte [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor ecx, ecx
lea r8d, [rcx + 0x16]
mov edx, 0x263
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x312
lea r8d, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movzx r9d, byte [rsp + 0x60]
lea r8, [0x140001b00]
imul ebx, eax, 7
add ebx, edi
xor edi, edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
movzx ecx, sil
movsxd rax, ebp
lea r8, str.atelier
lea rdx, str.resident
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x40
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], ecx
mov r9d, r12d
mov ecx, ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea r8, [0x140001b00]
movsxd r9, ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp r12d, r15d
jbe 0x1400af28a
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ecx, ecx
lea r8d, [rcx + 3]
mov edx, 0xa6
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret