Function at 0x7ff8c13306b0
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 [0x7ff8c13b2268]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rdx + 0x1a68], 0
je 0x7ff8c1330720
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 0x7ff8c133075d
mov ebp, eax
mov edx, eax
test rdi, rdi
je 0x7ff8c1330725
mov rax, qword [rdi + 0x3fd8]
test rax, rax
je 0x7ff8c1330725
mov rcx, qword [rdi + 0x3fd0]
mov r8d, 8
xor r9d, r9d
call rax
jmp 0x7ff8c133072d
mov r12b, 1
jmp 0x7ff8c1330787
mov rcx, rdx
call fcn.7ff8c13734e8
mov rbx, rax
test rax, rax
je 0x7ff8c133075b
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.7ff8c1375040
test eax, eax
sete r12b
jmp 0x7ff8c1330760
xor ebx, ebx
xor r12d, r12d
test rdi, rdi
je 0x7ff8c133077f
mov rax, qword [rdi + 0x3fe8]
test rax, rax
je 0x7ff8c133077f
mov rcx, qword [rdi + 0x3fd0]
mov rdx, rbx
call rax
jmp 0x7ff8c1330787
mov rcx, rbx
call fcn.7ff8c13729a0
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 0x7ff8c13307f3
mov ebp, eax
test rdi, rdi
je 0x7ff8c13307d1
mov rax, qword [rdi + 0x3fd8]
test rax, rax
je 0x7ff8c13307d1
mov edx, ebp
mov rcx, qword [rdi + 0x3fd0]
mov r8d, 8
xor r9d, r9d
call rax
jmp 0x7ff8c13307d8
mov ecx, ebp
call fcn.7ff8c13734e8
mov rsi, rax
test rax, rax
je 0x7ff8c13307f1
mov rcx, rbx
mov rdx, rsi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x7ff8c13307f3
xor esi, esi
test rsi, rsi
movzx eax, r12b
cmove r14d, eax
test rdi, rdi
je 0x7ff8c133081d
mov rax, qword [rdi + 0x3fe8]
test rax, rax
je 0x7ff8c133081d
mov rcx, qword [rdi + 0x3fd0]
mov rdx, rsi
call rax
jmp 0x7ff8c1330825
mov rcx, rsi
call fcn.7ff8c13729a0
cmp byte [r15 + 0x2e89], 0
je 0x7ff8c13308aa
xor ecx, ecx
call fcn.7ff8c1371564
lea rsi, [rsp + 0x50]
mov qword [rsi], rax
mov rcx, rsi
call fcn.7ff8c136ef78
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.7ff8c136f448
cmp qword [rsi], rax
setl r14b
test rdi, rdi
je 0x7ff8c1330936
cmp byte [rdi + 0x3f20], 0
je 0x7ff8c1330936
mov ebx, dword [rdi + 0x3f10]
test rbx, rbx
je 0x7ff8c1330936
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.7ff8c1375040
test eax, eax
je 0x7ff8c13308fa
inc rbp
add rsi, 0x2ea0
cmp rbp, rbx
jb 0x7ff8c13308da
jmp 0x7ff8c1330936
test r12, r12
je 0x7ff8c1330936
mov edi, dword [rsi + 0x2268]
test rdi, rdi
je 0x7ff8c1330936
mov rsi, qword [rsi + 0x2270]
xor ebx, ebx
mov rcx, rsi
mov rdx, r15
call fcn.7ff8c1375040
test eax, eax
je 0x7ff8c1330933
inc rbx
add rsi, 0x400
cmp rbx, rdi
jb 0x7ff8c1330913
jmp 0x7ff8c1330936
mov r14b, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff8c1361750
mov eax, r14d
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret