Function at 0x180100f00
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rbx, rcx
lea rcx, [rsp + 0x78]
call fcn.1801001f0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180101056
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x180100fa0
jmp 0x180100f8f
jae 0x1801010c4
cmp r8, 0x201
jae 0x180100fa0
mov esi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x180100fcf
sub r8, r12
sub rdi, r12
cmp rdi, r8
jb 0x180101035
cmp rbx, r14
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rsp + 0x50], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rsp + 0x20]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov rdx, r13
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r15d, eax
test eax, eax
jne 0x180100ffc
call fcn.18016fe79
test eax, eax
jne 0x1801011ab
mov r8d, r15d
cmp rbp, r8
jne 0x180100f80
call fcn.18016fe79
cmp eax, 0x7a
jne 0x1801011da
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x180100f8f
jmp 0x180100fa0
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.180184930
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x48]
jmp 0x180100faf
mov rdi, qword [rsp + 0x80]
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1801010bb
test rax, rax
je 0x1801010bb
lea rsi, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
cmp qword [rax + 8], 0
je 0x1801010a9
mov r8, qword [rdi - 1]
cmp qword [rax + 0x10], 0x11
jb 0x18010109a
mov r8, qword [r8 - 8]
mov rcx, qword [0x180219958]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [rbx + 0x18], 2
jmp 0x180101196
cmp rsi, r8
jb 0x1801011da
lea rcx, [rsp + 0x58]
mov rdx, r13
call fcn.1801008d0
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
test rbx, rbx
je 0x1801010fd
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [rsp + 0x70], 2
jne 0x18010116c
mov byte [rsi + 0x18], 2
mov rsi, qword [rsp + 0x58]
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x18010117d
test rax, rax
je 0x18010117d
lea rdi, [rsi - 1]
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x180101158
mov r8, qword [rsi - 1]
cmp qword [rax + 0x10], 0x11
jb 0x180101149
mov r8, qword [r8 - 8]
mov rcx, qword [0x180219958]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010117d
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r14, r14
je 0x180101196
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.18016fe79
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x70], 2
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
test rbx, rbx
jne 0x1801010e9
jmp 0x1801010fd
ud2