Function at 0x1400af810
Capabilities:
Extract resource via kernel32 functions
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r12d, dword [rsp + 0x260]
mov r15d, dword [rsp + 0x270]
mov r13, qword [rsp + 0x268]
mov rbp, r9
mov r14, r8
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x88], rdx
mov rsi, rcx
cmp r15d, r12d
jle 0x1400af892
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0x1ab
lea r8d, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x391
lea r8d, [rcx + 0x10]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
lea rcx, [rsp + 0xa0]
movzx eax, ax
mov edx, 0x104
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov ecx, 0xffff
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
lea r8d, [rcx + 3]
mov edx, 0x212
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x60], eax
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400af920
sub ebx, dword [r14 + 8]
mov rax, rdi
sub ebx, r12d
inc rax
cmp byte [rax + rbp], 0
jne 0x1400af933
xor ecx, ecx
mov edx, 0x2e4
add ebx, eax
lea r8d, [rcx + 0x1c]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
cmp dword [rsp + 0x60], r15d
jl 0x1400af95f
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov rdx, rdi
inc rdx
cmp byte [rsi + rdx], 0
jne 0x1400af962
mov rax, qword [rsp + 0x70]
mov r14d, dword [rsp + 0x64]
mov ecx, r13d
add eax, eax
add r14d, 0xb
sub ecx, eax
sub ecx, r12d
sub ecx, dword [rsp + 0x78]
lea eax, [rcx + rbp]
mov rbp, qword [rsp + 0x90]
add edx, eax
add edx, ebp
add r14d, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea rcx, str.c3a4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400af9c3
mov rcx, qword [rsp + 0x80]
lea eax, [r14 + r14*2]
mov ecx, dword [rcx + 4]
add eax, eax
sub ecx, eax
mov eax, dword [rsp + 0x68]
sub ecx, dword [rsp + 0x88]
sub ecx, dword [rsp + 0x70]
sub ecx, ebp
add eax, ecx
add edi, eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
movsxd rsi, dword [rsp + 0x60]
cmp esi, r15d
je 0x1400afae0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
lea r8, str.c3a2
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], eax
lea ecx, [rdi + 0xe]
lea rdx, str.alley
mov r9d, eax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor ecx, ecx
mov edx, 0x28f
lea r8d, [rcx + 0x1d]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, str.rambler
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor r8d, r8d
mov edx, 0x291
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x238
lea r8d, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
mov edx, 0x2ce
lea r8d, [rcx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0x390
lea r8d, [rcx + 0xc]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rax, r13
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x1f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret