Function at 0x18001faf0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x180071748]
xor rax, rsp
mov qword [rbp], rax
mov rsi, r9
mov r10, r8
mov qword [rsp + 0x50], r8
mov qword [rbp - 0x80], rdx
mov dword [rsp + 0x44], ecx
movdqa xmm0, xmmword [0x18006c7d0]
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
movdqa xmm1, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
movdqa xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
lea eax, [rcx - 0xa]
mov dword [rsp + 0x48], eax
mov rbx, qword [rsp + 0x38]
cmp ecx, eax
jbe case.0x18001fbb1.18
xor edi, edi
mov r13d, dword [rsp + 0x58]
mov r15d, dword [rsp + 0x58]
mov r14d, dword [rsp + 0x30]
mov r12d, dword [rsp + 0x40]
mov eax, ecx
mov ecx, dword [rsp + 0x48]
mov r11d, 0x400
lea r8, [0x180000000]
add eax, 0xffffffee
cmp eax, 0x1f
ja case.default.0x18001fbb1
movzx eax, byte [r8 + rax + 0x203d4]
mov ecx, dword [r8 + rax*4 + 0x203ac]
add rcx, r8
jmp rcx
mov rcx, qword [rsi]
mov edx, dword [rcx + 0x380]
sub edx, 2
je 0x18001fce2
cmp edx, 1
jne 0x18001fd1c
mov ecx, 0x4c
mov eax, ecx
sub eax, 0x4c
je 0x18001fcc3
cmp eax, 0x5a
jne 0x18001fcd3
mov rdi, rbx
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18001fc25
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fc20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001fcbc
call fcn.180064900
movdqa xmm0, xmmword [0x18006c7d0]
movdqa xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18001fc6d
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fc68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001fcbc
call fcn.180064900
movdqa xmm0, xmmword [0x18006c7d0]
movdqa xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180020381
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002037c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002037c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rsi]
mov dword [rax + 0x220], 0x21
mov rbx, rdi
add ecx, 0x5a
cmp ecx, 0x100
jb 0x18001fbd3
mov ecx, 0x125
nop word [rax + rax]
mov eax, ecx
sub eax, 0x124
je case.0x18001fbb1.18
cmp eax, 1
jne 0x18001fd12
mov rax, qword [rsi]
mov dword [rax + 0x220], 0x24
mov rbx, rdi
dec ecx
cmp ecx, 0x123
ja 0x18001fcf0
mov rax, qword [rsi]
mov rcx, qword [rax + 0x40]
sub rcx, qword [rax + 0x38]
movsxd rax, dword [r10]
cmp rax, rcx
jle 0x18001fe62
mov eax, 0x122
mov dword [rsp + 0x38], eax
nop dword [rax]
sub eax, 0x120
je 0x18001fd97
sub eax, 1
je 0x18001fd8a
cmp eax, 1
jne 0x18001fe47
mov rax, qword [rsi]
mov ecx, dword [rax + 0x30]
mov r9d, dword [rax + 0x38]
sub r9d, ecx
add r9d, dword [r10]
mov dword [rsp + 0x30], r9d
sub ecx, dword [rax + 0x10]
mov dword [rsp + 0x40], ecx
mov r14d, r9d
cmp ecx, r11d
jle 0x18001fff5
mov r12d, r11d
mov dword [rsp + 0x40], r11d
jmp 0x18001fe47
add r14d, r12d
mov dword [rsp + 0x30], r14d
jmp 0x18001fe47
mov rdx, qword [rsi]
mov r8, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x40]
sub rcx, r8
movsxd r9, dword [rsp + 0x30]
cmp r9, rcx
jg 0x18001fe73
movsxd rcx, dword [rsp + 0x40]
mov r12, rcx
mov rax, qword [rdx + 0x30]
sub rax, r8
cmp rcx, rax
jge 0x18001ffeb
mov r14d, 0x47
mov edi, dword [rsp + 0x58]
mov eax, r14d
sub eax, 0x45
je 0x18001fe1b
sub eax, 1
je 0x18001fdf4
cmp eax, 1
jne 0x18001fe29
mov rax, qword [rsi]
mov edi, dword [rax + 0x30]
sub edi, dword [rax + 0x10]
sub edi, ecx
jmp 0x18001fe29
mov rax, qword [rsi]
movsxd rbx, edi
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x38]
sub r8, qword [rax + 0x30]
add r8, r12
lea rdx, [rcx + rbx]
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsi]
sub qword [rax + 0x38], rbx
jmp 0x18001fe25
mov rcx, qword [rsi]
movsxd rax, edi
sub qword [rcx + 0x30], rax
mov ecx, dword [rsp + 0x40]
dec r14d
cmp r14d, 0x44
ja 0x18001fdd5
mov dword [rsp + 0x58], edi
xor edi, edi
mov r12d, dword [rsp + 0x40]
mov r10, qword [rsp + 0x50]
mov r14d, dword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
cmp eax, 0x11f
mov r11d, 0x400
ja 0x18001fd40
mov rbx, qword [rsi]
mov rbx, qword [rbx + 0x38]
mov qword [rsp + 0x38], rbx
jmp case.0x18001fbb1.27
mov r14d, 0x6f
nop dword [rax]
mov eax, r14d
sub eax, 0x6f
je 0x18001ffca
sub eax, 1
je 0x18001ffc0
sub eax, 1
je 0x18001ff8d
cmp eax, 1
jne 0x18001ffd9
mov rax, qword [rsi]
cmp qword [rax + 0x30], 0
je 0x18001ff74
mov ebx, 0x70
mov rdi, qword [rsp + 0x70]
mov r12d, 0x400
mov eax, ebx
sub eax, 0x6c
je 0x18001ff47
sub eax, 1
je 0x18001ff30
sub eax, 1
je 0x18001ff1d
sub eax, 1
je 0x18001feed
cmp eax, 1
jne 0x18001ff55
mov rax, qword [rsi]
mov r15d, dword [rax + 0x30]
sub r15d, dword [rax + 0x10]
jmp 0x18001ff55
cmp r15d, r12d
cmovg r15d, r12d
mov rax, qword [rsi]
mov rcx, qword [rax + 0x30]
mov r8, qword [rax + 0x38]
sub r8, rcx
movsxd rax, r15d
add r8, rax
mov eax, r15d
neg eax
movsxd rdx, eax
add rdx, rcx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18001ff55
mov rax, qword [rsi]
mov rcx, qword [rax + 0x10]
call qword [rax + 0x28]
mov rax, qword [rsi]
mov qword [rax + 0x10], rdi
jmp 0x18001ff55
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x10]
sub rcx, qword [rdx + 0x30]
movsxd rax, r15d
add rcx, rax
add qword [rdx + 0x38], rcx
jmp 0x18001ff55
mov rcx, qword [rsi]
movsxd rax, r15d
add rax, qword [rcx + 0x10]
mov qword [rcx + 0x30], rax
dec ebx
cmp ebx, 0x6b
ja 0x18001fec5
xor edi, edi
mov r9d, dword [rsp + 0x30]
mov r12d, dword [rsp + 0x40]
mov r11d, 0x400
jmp 0x18001ffd9
mov r8, qword [rsp + 0x70]
add qword [rax + 0x38], r8
mov rax, qword [rsi]
mov qword [rax + 0x10], r8
mov rax, qword [rsi]
mov qword [rax + 0x30], r8
jmp 0x18001ffd9
movsxd rbx, r13d
mov rax, qword [rsi]
mov rcx, rbx
call qword [rax + 0x18]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180020300
lea rdx, [rbx + rax]
mov rcx, qword [rsi]
mov qword [rcx + 0x40], rdx
mov r9d, dword [rsp + 0x30]
mov r11d, 0x400
jmp 0x18001ffd9
add r13d, r13d
cmp r13d, r9d
jl 0x18001ffc0
jmp 0x18001ffd9
mov rax, qword [rsi]
mov r13d, dword [rax + 0x40]
sub r13d, dword [rax + 0x30]
cmove r13d, r11d
inc r14d
cmp r14d, 0x73
jb 0x18001fe80
jmp 0x18001fe3d
mov r12d, dword [rsp + 0x40]
jmp 0x18001fe42
mov r12d, ecx
jmp 0x18001fe47
mov rax, rdx
sub rax, r10
cqo
sub rax, rdx
sar rax, 1
sub rax, 2
je 0x18002018b
sub rax, 1
je 0x180020140
cmp rax, 1
jne 0x1800201b4
cmp byte [r10], 0
jne 0x1800201b4
movzx eax, byte [r10 + 1]
cmp al, 0x61
je 0x1800200b0
cmp al, 0x71
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x75
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x6f
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x74
jne 0x1800201b4
mov dword [rsp + 0x38], 0x22
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
mov eax, 0xfe
cmp eax, 0xfe
je 0x180020126
cmp eax, 0x1bf
jne 0x18002012f
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x70
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x6f
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x73
jne 0x1800201b4
mov dword [rsp + 0x38], 0x27
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
add r10, 2
mov qword [rsp + 0x50], r10
add eax, 0xc1
cmp eax, 0x280
jae 0x1800201b4
jmp 0x1800200b5
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x61
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x6d
jne 0x1800201b4
add r10, 2
mov qword [rsp + 0x50], r10
cmp byte [r10], 0
jne 0x1800201b4
cmp byte [r10 + 1], 0x70
jne 0x1800201b4
mov dword [rsp + 0x38], 0x26
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
cmp byte [r10 + 2], 0
jne 0x1800201b4
cmp byte [r10 + 3], 0x74
jne 0x1800201b4
cmp byte [r10], 0
jne 0x1800201b4
movzx eax, byte [r10 + 1]
cmp al, 0x67
je 0x180020324
cmp al, 0x6c
je 0x180020312
mov eax, 0x1d
mov ecx, dword [rsp + 0x48]
jmp 0x1800202dd
mov rcx, qword [rsp + 0x68]
cmp rcx, qword [0x180071878]
jbe 0x18002026c
mov ebx, 0xfc
nop dword [rax]
mov eax, ebx
sub eax, 0xfc
je 0x180020221
sub eax, 1
je 0x18002020c
cmp eax, 1
jne 0x18002025e
mov r8d, dword [0x180071878]
mov rdx, qword [0x180071870]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x180020259
mov rax, qword [rsp + 0x60]
mov qword [0x180071870], rax
mov qword [0x180071878], rcx
jmp 0x18002025e
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [0x180071870]
xor r8d, r8d
lea edx, [r8 + 0x28]
xor ecx, ecx
call fcn.180021000
mov qword [rsp + 0x60], rax
cmp rax, 0
je 0x18001fbea
mov rcx, qword [rsp + 0x68]
inc ebx
cmp ebx, 0xff
jb 0x1800201e0
mov rbx, qword [0x180071870]
mov qword [rsp + 0x38], rbx
jmp case.0x18001fbb1.27
mov r8d, dword [0x180071878]
mov rdx, qword [0x180071870]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, eax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18001fbea
jmp case.0x18001fbb1.27
mov qword [rsp + 0x78], rsi
cmp qword [rsi + 0x1a], 0
jne case.0x18001fbb1.27
mov byte [rsp + 0x38], 0
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
mov r8, qword [rsp + 0x78]
add r8, 0xa
mov edx, 6
lea rcx, [rbp - 0x70]
call fcn.180030ab0
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp eax, ecx
jbe case.0x18001fbb1.18
mov r10, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x80]
jmp 0x18001fb84
mov rax, qword [rsi]
mov dword [rax + 0x220], 1
jmp 0x18001fbea
mov dword [rsp + 0x38], 0x3c
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
mov dword [rsp + 0x38], 0x3e
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 8]
mov word [rsp + 0x30], ax
mov dword [rsp + 0x20], 0x59
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.18001c890
mov byte [rsp + 0x38], al
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
mov dword [rsp + 0x38], edi
mov rdi, qword [rsp + 0x38]
jmp 0x18001fbea
call fcn.180064900
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180064e10
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret