Function at 0x140030900
Capabilities:
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x1790]
mov eax, 0x1890
call fcn.140247340
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x18a8], rbx
mov qword [rsp + 0x18b0], rsi
mov qword [rsp + 0x18b8], rdi
mov rbx, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x820
lea rcx, [rsp + 0x30]
call fcn.140249b10
mov r8d, 4
lea rdx, [0x14028bea0]
mov rcx, rbx
call fcn.140252028
lea rcx, [rsp + 0x30]
test eax, eax
jne 0x140030992
add rbx, 8
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140030980
jmp 0x1400309b0
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400309a0
lea rcx, [rsp + 0x30]
call fcn.14025f5f8
mov r8d, 8
lea rdx, str.SYSTEM32
lea rcx, [rsp + 0x30]
call fcn.140252028
xor ebx, ebx
test eax, eax
jne 0x140030a76
xor edx, edx
mov r8d, 0x804
lea rcx, [rbp + 0x76c]
call fcn.140249b10
movups xmm0, xmmword [str._systemroot__]
movaps xmmword [rbp + 0x750], xmm0
movsd xmm1, qword [0x14028bed8]
movsd qword [rbp + 0x760], xmm1
mov eax, dword [0x14028bee0]
mov dword [rbp + 0x768], eax
lea rcx, [rbp + 0x750]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x140030a24
lea r8, [rsp + 0x30]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140030a40
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x750]
mov word [rsp + rcx + 0x30], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140030a60
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0xf70]
call fcn.140249b10
mov r8d, 0x820
lea rdx, [rbp + 0xf70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0xf70]
mov word [rsp + rcx + 0x30], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140030ab0
lea rcx, [rsp + 0x30]
call fcn.14025f5f8
lea rdx, str.SYSTEMROOT
lea rcx, [rsp + 0x30]
call fcn.140249ef0
mov rdi, rax
test rax, rax
je 0x140030ba8
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0x750]
call fcn.140249b10
mov word [rdi], bx
mov rdx, rbx
nop word [rax + rax]
movzx ecx, word [rsp + rdx + 0x30]
mov word [rbp + rdx + 0x750], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140030b10
lea rcx, [rbp + 0x750]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x140030b31
movups xmm0, xmmword [str._SYSTEMROOT_]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x14028bf10]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [0x14028bf18]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x750]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x140030b67
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi + rdx*2 + 0x16]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140030b80
movzx eax, word [rbp + rbx + 0x750]
mov word [rsp + rbx + 0x30], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140030b92
mov r8d, 0x820
lea rdx, [rbp + 0xf70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0xf70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp + 0x17a0], rax
test rax, rax
je 0x140030c0a
mov rdx, rax
mov rcx, rsi
call fcn.14002a980
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140004cd0
int3