Function at 0x7ff8c49b06b0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x7ff8c4a32268]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rdx + 0x1a68], 0
je 0x7ff8c49b0720
lea r14, [r15 + 0x1a68]
xor ebx, ebx
mov rcx, r14
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x7ff8c49b075d
mov ebp, eax
mov edx, eax
test rdi, rdi
je 0x7ff8c49b0725
mov rax, qword [rdi + 0x3fd8]
test rax, rax
je 0x7ff8c49b0725
mov rcx, qword [rdi + 0x3fd0]
mov r8d, 8
xor r9d, r9d
call rax
jmp 0x7ff8c49b072d
mov r12b, 1
jmp 0x7ff8c49b0787
mov rcx, rdx
call fcn.7ff8c49f34e8
mov rbx, rax
test rax, rax
je 0x7ff8c49b075b
mov rcx, r14
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rcx, [r15 + 0x1e68]
mov rdx, rbx
call fcn.7ff8c49f5040
test eax, eax
sete r12b
jmp 0x7ff8c49b0760
xor ebx, ebx
xor r12d, r12d
test rdi, rdi
je 0x7ff8c49b077f
mov rax, qword [rdi + 0x3fe8]
test rax, rax
je 0x7ff8c49b077f
mov rcx, qword [rdi + 0x3fd0]
mov rdx, rbx
call rax
jmp 0x7ff8c49b0787
mov rcx, rbx
call fcn.7ff8c49f29a0
lea rbx, [r15 + 0x1268]
xor r14d, r14d
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, 0
test eax, eax
je 0x7ff8c49b07f3
mov ebp, eax
test rdi, rdi
je 0x7ff8c49b07d1
mov rax, qword [rdi + 0x3fd8]
test rax, rax
je 0x7ff8c49b07d1
mov edx, ebp
mov rcx, qword [rdi + 0x3fd0]
mov r8d, 8
xor r9d, r9d
call rax
jmp 0x7ff8c49b07d8
mov ecx, ebp
call fcn.7ff8c49f34e8
mov rsi, rax
test rax, rax
je 0x7ff8c49b07f1
mov rcx, rbx
mov rdx, rsi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x7ff8c49b07f3
xor esi, esi
test rsi, rsi
movzx eax, r12b
cmove r14d, eax
test rdi, rdi
je 0x7ff8c49b081d
mov rax, qword [rdi + 0x3fe8]
test rax, rax
je 0x7ff8c49b081d
mov rcx, qword [rdi + 0x3fd0]
mov rdx, rsi
call rax
jmp 0x7ff8c49b0825
mov rcx, rsi
call fcn.7ff8c49f29a0
cmp byte [r15 + 0x2e89], 0
je 0x7ff8c49b08aa
xor ecx, ecx
call fcn.7ff8c49f1564
lea rsi, [rsp + 0x50]
mov qword [rsi], rax
mov rcx, rsi
call fcn.7ff8c49eef78
mov eax, dword [rax + 0x20]
lea rcx, [rsp + 0x28]
mov dword [rcx], 0
movzx edx, byte [r15 + 0x2e8f]
mov dword [rcx + 4], edx
movzx edx, byte [r15 + 0x2e8e]
mov dword [rcx + 8], edx
movzx edx, byte [r15 + 0x2e8d]
mov dword [rcx + 0xc], edx
movzx edx, byte [r15 + 0x2e8c]
dec edx
mov dword [rcx + 0x10], edx
movzx edx, word [r15 + 0x2e8a]
add edx, 0xfffff894
mov dword [rcx + 0x14], edx
mov qword [rcx + 0x18], 0
mov dword [rcx + 0x20], eax
call fcn.7ff8c49ef448
cmp qword [rsi], rax
setl r14b
test rdi, rdi
je 0x7ff8c49b0936
cmp byte [rdi + 0x3f20], 0
je 0x7ff8c49b0936
mov ebx, dword [rdi + 0x3f10]
test rbx, rbx
je 0x7ff8c49b0936
mov r12, qword [rdi + 0x3f18]
xor ebp, ebp
lea rdi, str.VK_LAYER_LUNARG_override
mov rsi, r12
mov rcx, rsi
mov rdx, rdi
call fcn.7ff8c49f5040
test eax, eax
je 0x7ff8c49b08fa
inc rbp
add rsi, 0x2ea0
cmp rbp, rbx
jb 0x7ff8c49b08da
jmp 0x7ff8c49b0936
test r12, r12
je 0x7ff8c49b0936
mov edi, dword [rsi + 0x2268]
test rdi, rdi
je 0x7ff8c49b0936
mov rsi, qword [rsi + 0x2270]
xor ebx, ebx
mov rcx, rsi
mov rdx, r15
call fcn.7ff8c49f5040
test eax, eax
je 0x7ff8c49b0933
inc rbx
add rsi, 0x400
cmp rbx, rdi
jb 0x7ff8c49b0913
jmp 0x7ff8c49b0936
mov r14b, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff8c49e1750
mov eax, r14d
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret