Function at 0x180033a10
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1160
call fcn.1800554d0
sub rsp, rax
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x11b0], rbx
mov rax, qword [0x1800764a0]
xor rax, rsp
mov qword [rsp + 0x1150], rax
mov rsi, rcx
mov qword [rsp + 0x98], rcx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
lea r8, [0x180060384]
lea rcx, [rsp + 0x38]
call fcn.18002eaf4
nop
lea r12d, [r15 + 7]
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], r15w
lea ecx, [r15 + 8]
call fcn.18004116c
cmp rax, r15
je 0x180033aa4
mov qword [rax], rsi
jmp 0x180033aa7
mov rax, r15
mov qword [rsi], rax
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x20], r15
mov qword [rsi + 0x28], r15
mov dword [rsp + 0x34], 1
mov r14, r15
mov rbp, qword [rsp + 0x58]
mov rcx, rbp
mov rdi, qword [rsp + 0x50]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180033e5e
mov r13, r15
movabs rbp, 0x8888888888888889
mov bl, byte [rsp + 0x30]
jmp 0x180033b0f
movabs rbp, 0x8888888888888889
mov word [rsp + 0x150], r15w
cmp r14, rdx
jb 0x180033b27
call fcn.180041018
mov rdi, qword [rsp + 0x50]
cmp qword [r13 + rdi + 0x20], 8
jb 0x180033b36
mov rcx, qword [r13 + rdi + 8]
jmp 0x180033b3b
lea rcx, [r13 + rdi + 8]
mov r8d, 0x400
lea rdx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov word [rsp + 0x950], r15w
mov r8d, 0x400
lea rdx, [rsp + 0x950]
lea rcx, [rsp + 0x150]
call fcn.18002e218
lea rcx, [rsp + 0x150]
call fcn.18002f038
lea rcx, [rsp + 0x950]
call fcn.18002f038
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd8], r15w
mov qword [rsp + 0x118], r12
mov qword [rsp + 0x110], r15
mov word [rsp + 0x100], r15w
mov qword [rsp + 0x140], r12
mov qword [rsp + 0x138], r15
mov word [rsp + 0x128], r15w
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jb 0x180033c0f
call fcn.180041018
mov rdi, qword [rsp + 0x50]
lea rdx, [r13 + rdi]
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rcx, [rsp + 0xd0]
call fcn.180008540
xor eax, eax
mov rcx, rdi
lea rdi, [rsp + 0x150]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xf8]
call fcn.18000a4d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x950]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x950]
lea rcx, [rsp + 0x120]
call fcn.18000a4d0
mov r11, qword [rsi + 0x18]
cmp r11, r15
jne 0x180033c92
mov rdi, r15
jmp 0x180033cb1
mov rcx, qword [rsi + 0x28]
sub rcx, r11
mov rax, rbp
imul rcx
lea rdi, [rcx + rdx]
sar rdi, 6
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rbp, qword [rsi + 0x20]
mov rcx, rbp
sub rcx, r11
movabs rax, 0x8888888888888889
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, rdi
jae 0x180033d0c
xor eax, eax
lea r9, [rsi + 0x10]
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bl
lea r8, [rsp + 0xd0]
lea edx, [rax + 1]
mov rcx, rbp
call fcn.180035e2c
lea rdx, [rbp + 0x78]
mov qword [rsi + 0x20], rdx
jmp 0x180033e16
cmp r11, rbp
jbe 0x180033d16
call fcn.180041018
mov rdi, qword [rsi]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rbp
mov r12, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x20]
sub rcx, r12
movabs rax, 0x8888888888888889
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180033d53
mov rdi, r15
jmp 0x180033d90
cmp r12, qword [rsi + 0x20]
jbe 0x180033d5e
call fcn.180041018
cmp rdi, r15
je 0x180033d68
cmp rdi, qword [rsi]
je 0x180033d6d
call fcn.180041018
sub rbp, r12
movabs rax, 0x8888888888888889
imul rbp
lea rdi, [rbp + rdx]
sar rdi, 6
mov rax, rdi
shr rax, 0x3f
add rdi, rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x80], xmm0
lea r9, [rsp + 0xd0]
mov r8d, 1
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.1800354c8
mov r12, qword [rsi + 0x18]
cmp r12, qword [rsi + 0x20]
jbe 0x180033dcb
call fcn.180041018
mov rbp, qword [rsi]
cmp rbp, r15
jne 0x180033ddd
call fcn.180041018
mov r11, r15
jmp 0x180033de1
mov r11, qword [rbp]
imul rdi, rdi, 0x78
lea rcx, [rdi + r12]
cmp rcx, qword [r11 + 0x20]
ja 0x180033e03
cmp rbp, r15
je 0x180033dfa
mov rax, qword [rbp]
jmp 0x180033dfd
mov rax, r15
cmp rcx, qword [rax + 0x18]
jae 0x180033e10
call fcn.180041018
mov r12d, 7
jmp 0x180033e16
mov r12d, 7
lea rcx, [rsp + 0xd0]
call fcn.180033f24
inc r14
add r13, 0x28
mov rbp, qword [rsp + 0x58]
mov rcx, rbp
mov rdi, qword [rsp + 0x50]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jb 0x180033b05
cmp qword [rsp + 0xc0], 8
jb 0x180033e80
mov rcx, qword [rsp + 0xa8]
call fcn.180041070
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], r15w
cmp rdi, r15
je 0x180033edc
cmp rdi, rbp
je 0x180033ed4
add rdi, 0x20
cmp qword [rdi], 8
jb 0x180033eb6
mov rcx, qword [rdi - 0x18]
call fcn.180041070
mov qword [rdi], r12
mov qword [rdi - 8], r15
mov word [rdi - 0x18], r15w
add rdi, 0x28
lea rax, [rdi - 0x20]
cmp rax, rbp
jne 0x180033ea7
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.180041070
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x38]
call fcn.180041070
mov rax, rsi
mov rcx, qword [rsp + 0x1150]
xor rcx, rsp
call fcn.180040bb0
mov rbx, qword [rsp + 0x11b0]
add rsp, 0x1160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret