Function at 0x1400d37b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
or rbp, 0xffffffffffffffff
mov r14, rbp
inc r14
cmp byte [rbx + r14], 0
jne 0x1400d37f1
mov dword [rsp + 0x58], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r15, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r13, rax
cmp r12d, 0x40
jne 0x1400d388d
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8d, [r12 - 0x2f]
mov edx, 0xfe
lea esi, [rax - 2]
xor ecx, ecx
mov rdi, rax
lea esi, [rax + rsi*4]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov r8, rdi
mov rdx, r15
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rbp
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1400d38a0
add edi, 0x40
mov rcx, rbp
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400d38b0
mov eax, 2
mov rdx, rbp
sub eax, r15d
sub eax, r12d
add ecx, eax
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x1400d38d0
mov eax, r12d
imul eax, r14d
sub ecx, eax
lea r14d, [rcx + 8]
add r14d, edx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rbp
mov rsi, rax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400d38f5
shl r12d, 6
xor edx, edx
mov r8d, 0x140
sub edi, r12d
sub edi, r15d
sub edi, 0x48
add ecx, edi
mov dword [rsp + 0x60], ecx
lea rcx, [rsp + 0xa0]
call fcn.1400e27d0
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0x292
lea r8d, [rcx + 3]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rbp
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1400d3950
sub r15b, byte [rsp + 0x58]
sub r15b, sil
add r15b, 6
add dil, r15b
nop dword [rax + rax]
inc rbp
cmp byte [rbx + rbp], 0
jne 0x1400d3970
movzx eax, r13b
mov ecx, 0xfffffff8
imul r14b
sub cl, al
sub cl, sil
add bpl, cl
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, 0x47
lea r8d, [rdx - 0x30]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rax
movzx eax, bpl
imul bl
add al, byte [rsp + 0x60]
add al, dil
sub al, cl
sub al, 5
cmp al, dil
jl 0x1400d39e5
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor eax, eax
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret