Function at 0x140029260
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xb50]
sub rsp, 0xc50
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call fcn.140249b10
mov r8d, 4
lea rdx, [0x140287fe4]
mov rcx, rbx
call fcn.140250b10
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x1400292d0
add rbx, 4
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400292c0
jmp 0x1400292ee
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400292e0
mov r8d, 8
lea rdx, str.system32
lea rcx, [rsp + 0x20]
call fcn.140250bd8
test eax, eax
jne 0x1400293a4
xor edx, edx
lea rcx, [rbp + 0x33e]
mov r8d, 0x402
call fcn.140249b10
mov eax, dword [0x14028b430]
lea rcx, [rbp + 0x330]
movsd xmm0, qword [0x14028b428]
dec rcx
mov dword [rbp + 0x338], eax
movzx eax, word [0x14028b434]
mov word [rbp + 0x33c], ax
movsd qword [rbp + 0x330], xmm0
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029355
lea r8, [rsp + 0x20]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140029370
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x330]
mov byte [rsp + rcx + 0x20], al
lea rcx, [rcx + 1]
test al, al
jne 0x140029390
xor edx, edx
lea rcx, [rbp + 0x740]
mov r8d, 0x410
call fcn.140249b10
mov r8d, 0x410
lea rdx, [rbp + 0x740]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x740]
mov byte [rsp + rcx + 0x20], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400293e0
lea rdx, str.systemroot
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rbx, rax
test rax, rax
je 0x1400294c4
xor edx, edx
lea rcx, [rbp + 0x330]
mov r8d, 0x410
call fcn.140249b10
xor edx, edx
mov byte [rbx], 0
nop dword [rax + rax]
movzx ecx, byte [rsp + rdx + 0x20]
mov byte [rbp + rdx + 0x330], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140029430
lea rcx, [rbp + 0x330]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029450
mov eax, dword [0x14028b450]
movsd xmm0, qword [str._systemroot_]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, byte [0x14028b454]
mov byte [rcx + 0xc], al
lea rcx, [rbp + 0x330]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029483
xor edx, edx
nop
movzx eax, byte [rbx + rdx + 0xa]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140029490
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x330]
mov byte [rsp + rcx + 0x20], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400294b0
mov r8d, 0x410
lea rdx, [rbp + 0x740]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rbp + 0x740], 0x5c
jne 0x1400294fe
lea rcx, [rbp + 0x741]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rcx - 1], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400294f0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140029514
call fcn.140247060
mov qword [rdi + 8], 0
lea rcx, [rbp + 0x740]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140029522
lea ecx, [rax + 1]
mov dword [rdi + 0x10], eax
call fcn.140247068
mov qword [rdi + 8], rax
test rax, rax
je 0x140029555
mov r8d, dword [rdi + 0x10]
lea rdx, [rbp + 0x740]
inc r8d
mov rcx, rax
call fcn.1402496a0
lea r11, [rsp + 0xc50]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret