Function at 0x180241300
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r14, r8
mov r15, rdx
xor edi, edi
lea r8, [rcx + 0x10]
cmp qword [r8], rdi
jne 0x18024134c
xor al, al
jmp 0x180241614
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov rax, rcx
mov rdx, qword [rcx + 0x18]
cmp rdx, 8
jb 0x180241379
mov rax, qword [rcx]
cmp word [rax], 0x40
jne 0x1802413d3
mov r8, qword [r8]
dec r8d
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.1801db8d0
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x1802413c8
lea rcx, [rsp + 0x40]
call fcn.1800338a0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rcx, [rbp - 0x80]
call fcn.1800338a0
jmp 0x1802413f6
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x1802413f6
cmp rdx, 8
jb 0x1802413e6
mov rcx, qword [rcx]
mov r8, qword [r8]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.180033930
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.18029c350
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, eax
mov rbx, 0xffffffffffffffff
cmp eax, 0x104
jb 0x180241494
mov eax, 2
mul r12
cmovo rax, rbx
mov rcx, rax
call fcn.18029a0ac
mov rsi, rax
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, r12d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x180241470
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180033930
mov rcx, rsi
call fcn.180299904
jmp 0x1802414bb
lea rax, [rbp - 0x60]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1802414a0
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.180033930
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], di
mov r8d, 2
lea rdx, [0x180389d60]
lea rcx, [rsp + 0x60]
call fcn.180033930
nop
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
cmp r12, 8
cmovae rcx, rsi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call fcn.1800536b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1802415d2
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.1801db870
nop
mov rdx, rax
mov rcx, r15
call fcn.1800379a0
nop
lea rcx, [rbp - 0x80]
call fcn.1800338a0
test r14, r14
je 0x1802415ce
mov r8d, dword [rsp + 0x50]
sub r8d, ebx
sub r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.1801db8d0
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
movzx eax, word [rdx]
cmp ax, 0x30
jb 0x1802415c2
nop dword [rax + rax]
cmp ax, 0x39
ja 0x1802415c2
lea rdi, [rdi + rdi*4]
movzx eax, ax
lea rdi, [rdi - 0x18]
lea rdi, [rax + rdi*2]
add rdx, 2
movzx eax, word [rdx]
cmp ax, 0x30
jae 0x1802415a0
mov dword [r14], edi
lea rcx, [rbp - 0x80]
call fcn.1800338a0
mov bl, 1
jmp 0x1802415fc
lea rax, [rsp + 0x40]
cmp r15, rax
je 0x1802415f6
lea rdx, [rsp + 0x40]
cmp r12, 8
cmovae rdx, rsi
mov r8, qword [rsp + 0x50]
mov rcx, r15
call fcn.180033930
test r14, r14
sete bl
lea rcx, [rsp + 0x60]
call fcn.1800338a0
nop
lea rcx, [rsp + 0x40]
call fcn.1800338a0
movzx eax, bl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x2c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret