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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x320], rax
or rdi, 0xffffffffffffffff
mov r13, rdx
mov qword [rsp + 0x70], rdx
mov r14, rdi
mov rbx, rcx
nop dword [rax + rax]
inc r14
cmp byte [rcx + r14], 0
jne 0x1400bbbe0
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [rdx + rsi], 0
jne 0x1400bbbf0
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400bbc00
xor ecx, ecx
mov edx, 0x2c0
add sil, al
lea r8d, [rcx + 0x17]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r15, rdi
mov rbp, rax
mov qword [rsp + 0x88], rax
nop dword [rax + rax]
inc r15
cmp byte [rbx + r15], 0
jne 0x1400bbc30
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [rsp + 0x1e0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x1e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rdi
mov qword [rsp + 0x80], rax
inc r12
cmp byte [rbx + r12], 0
jne 0x1400bbc71
mov edx, 0x63
xor ecx, ecx
mov qword [rsp + 0x90], r12
lea r8d, [rdx - 0x58]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x78], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rcx, str.pimple
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
movsx r10d, sil
mov rbp, rdi
mov rdx, rax
mov dword [rsp + 0x60], r10d
nop dword [rax]
inc rbp
cmp byte [r13 + rbp], 0
jne 0x1400bbcd0
mov rax, rdi
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400bbce0
mov r9, qword [rsp + 0x80]
imul ebp, eax
mov eax, r10d
imul eax, r15d
movzx r8d, r12b
add ebp, eax
mov dword [rsp + 0x64], r8d
mov rax, rdi
sub ebp, r9d
sub ebp, r14d
nop
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400bbd10
lea ecx, [rax + rax*2]
mov eax, r8d
mov r8, qword [rsp + 0x88]
imul eax, r10d
add ecx, ecx
mov r13, rdi
imul eax, r8d
imul eax, r9d
shl eax, 6
sub ecx, eax
mov rax, qword [rsp + 0x68]
sub ecx, ebp
add eax, 8
add ecx, edx
add eax, ecx
mov dword [rsp + 0x68], eax
inc r13
cmp byte [rbx + r13], 0
jne 0x1400bbd51
mov rax, qword [rsp + 0x78]
mov ecx, r9d
mov r12, rdi
lea eax, [rax*4]
sub ecx, eax
sub ecx, edx
lea eax, [rcx - 2]
add eax, ebp
add r13d, eax
nop dword [rax]
inc r12
cmp byte [rbx + r12], 0
jne 0x1400bbd80
movzx eax, bpl
lea rcx, [rsp + 0xa0]
xor edx, edx
imul r9b
shl al, 3
sub al, r14b
sub al, r8b
mov r8d, 0x140
add al, 6
add r12b, al
call fcn.1400e27d0
lea rdx, [rsp + 0xa0]
lea rcx, str.c1a3
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdx, rax
mov qword [rsp + 0x78], rax
xor eax, eax
cmp byte [rsp + 0x90], r12b
je 0x1400bbec7
mov r8, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x68]
movsx rcx, sil
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov r9d, r14d
mov ecx, r13d
mov rdx, r8
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor r8d, r8d
mov edx, 0x33d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x2f2
lea r8d, [rcx + 0x16]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
movsxd rax, dword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
xor ecx, ecx
mov rdx, r8
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov ecx, dword [rsp + 0x64]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov r9d, eax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
movsx rsi, sil
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400bbed3
mov rcx, qword [rsp + 0x80]
imul edx, r13d
sub edx, ecx
shl edx, 2
sub edx, esi
sub edx, r15d
movsxd r15, dword [rsp + 0x68]
add edx, dword [rsp + 0x64]
add edx, dword [rsp + 0x88]
add edx, r15d
sub edx, eax
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1400bbf07
add edi, 0xfffffffc
add edi, edx
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp r15d, ebp
jge 0x1400bbff2
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, dword [rsp + 0x60]
movzx eax, r12b
xor r12d, r12d
lea rbx, str.c0a1
lea r8, str.c1a0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ecx
mov r9d, ebp
mov rdx, rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea r8d, [r12 + 3]
mov edx, 0xed
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], 0x20
lea r8, str.c8ret
lea rdx, str.caravan
mov r9d, edi
mov ecx, ebp
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_CreateWindowExA]
movzx r9d, byte [rsp + 0x90]
lea r8d, [r12 + 0x20]
lea rdx, str.caravan
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov rax, rbx
jmp 0x1400bbff9
lea rax, str.c0a1
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret