Function at 0x140078920
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2f8], rbx
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call fcn.1400025c0
test rax, rax
je 0x140078bc3
lea rcx, [rsp + 0x30]
call fcn.140008be0
nop
mov rcx, rbx
call fcn.140002540
mov r8, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x140078995
mov rax, qword [rax]
mov rcx, rbx
cmp word [rax], 0x40
jne 0x1400789cf
call fcn.1400025c0
lea r8d, [rax - 1]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14001f850
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140008b60
nop
lea rcx, [rsp + 0x50]
call fcn.1400024f0
jmp 0x1400789f8
call fcn.140002540
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x1400789f8
mov rdx, r8
cmp r9, 8
jb 0x1400789ea
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400025d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.1400a8b60
lea rcx, [rsp + 0x30]
call fcn.1400024e0
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
cmp eax, 0x104
jb 0x140078a89
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400a7138
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400024e0
mov rcx, rax
mov r8d, r15d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
call fcn.1400027f0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400025d0
mov rcx, rbx
call fcn.1400a6bfc
jmp 0x140078aa3
lea rcx, [rbp - 0x70]
call fcn.1400027f0
mov r8, rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400025d0
lea rdx, [0x1400fc6b4]
lea rcx, [rsp + 0x70]
call fcn.140002500
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140017ad0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140078b73
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14001f7f0
nop
mov rdx, rax
mov rcx, rsi
call fcn.140008b60
nop
lea rcx, [rsp + 0x50]
call fcn.1400024f0
test r14, r14
je 0x140078b6f
lea rcx, [rsp + 0x30]
call fcn.1400025c0
mov r8, rax
sub r8d, ebx
lea rcx, [rsp + 0x70]
call fcn.1400025c0
sub r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14001f850
nop
lea rcx, [rsp + 0x50]
call fcn.1400024e0
movzx ecx, word [rax]
cmp cx, 0x30
jb 0x140078b62
nop
cmp cx, 0x39
ja 0x140078b62
lea rdi, [rdi + rdi*4]
movzx ecx, cx
lea rdi, [rdi - 0x18]
lea rdi, [rcx + rdi*2]
add rax, 2
movzx ecx, word [rax]
cmp cx, 0x30
jae 0x140078b40
mov dword [r14], edi
lea rcx, [rsp + 0x50]
call fcn.1400024f0
mov bl, 1
jmp 0x140078bab
lea rcx, [rsp + 0x30]
call fcn.140002540
cmp rsi, rax
je 0x140078ba5
lea rcx, [rsp + 0x30]
call fcn.140002540
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140078b99
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.1400025d0
test r14, r14
sete bl
lea rcx, [rsp + 0x70]
call fcn.1400024f0
nop
lea rcx, [rsp + 0x30]
call fcn.1400024f0
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400a6810
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret