Function at 0x14006a800
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rdi, rcx
lea rcx, [0x14010ee80]
mov r12, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, byte [rdi + 0xd]
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
cmp dword [rsp + 0x1b8], r13d
setl al
and r15b, 0x11
mov byte [rsp + 0x40], r15b
mov byte [rsp + 0x50], al
cmp al, r13b
jne 0x14006a86d
test bpl, 0x40
je 0x14006a875
mov r15b, r13b
mov byte [rsp + 0x40], r13b
mov eax, 0x50
lea rcx, [rsp + 0x58]
and bpl, 1
mov rdx, rax
mov byte [rsp + 0x1c0], bpl
mov qword [rsp + 0x70], rax
call fcn.140058200
or dword [rsp + 0x54], 0xffffffff
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x1b8]
lea rcx, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x78], r13
call fcn.140060630
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x1a0]
mov r12d, 0x25
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x68]
jae 0x14006ae97
cmp word [rsi], r13w
je 0x14006ae97
lea rcx, [rsp + 0x80]
call fcn.140060774
cmp word [rsi], r12w
je 0x14006a961
mov rdx, qword [rsp + 0x48]
mov ecx, 0x3dd
movzx eax, word [rsi]
cmp ax, r13w
je 0x14006a904
cmp r12w, ax
je 0x14006a904
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rsi, 2
add rdx, 2
sub ecx, 1
mov qword [rsp + 0x48], rdx
jns 0x14006a936
jmp 0x14006a904
mov r14, rsi
cmp bpl, r13b
je 0x14006ab4a
cmp word [rsi + 2], r12w
jne 0x14006a994
mov rax, qword [rsp + 0x48]
mov word [rax], r12w
mov rdx, qword [rsp + 0x48]
add rdx, 2
add rsi, 4
mov qword [rsp + 0x48], rdx
jmp 0x14006a904
cmp word [rsi + 2], 0x23
jne 0x14006a9ea
mov rcx, qword [rbx + 0x68]
add rsi, 4
cmp rcx, r13
je 0x14006ae34
movsxd rax, dword [rbx + 0x60]
mov rcx, qword [rcx + rax*8 + 0x10]
movzx eax, word [rcx]
cmp ax, r13w
je 0x14006ae34
mov rdx, qword [rsp + 0x48]
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rcx, 2
add rdx, 2
mov qword [rsp + 0x48], rdx
mov ax, word [rcx]
cmp ax, r13w
jne 0x14006a9c7
jmp 0x14006a904
cmp word [rsi + 2], 0x2a
jne 0x14006aa07
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x14006ae2e
mov eax, dword [rbx + 0x60]
jmp 0x14006aa24
cmp word [rsi + 2], 0x40
jne 0x14006aa3e
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x14006ae2e
mov eax, dword [rbx + 0x60]
inc eax
mov dword [rsp + 0x54], eax
cdqe
mov r12, qword [r12 + rax*8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
jmp 0x14006aaf1
movzx eax, word [rsi + 2]
mov r8d, 9
sub ax, 0x30
cmp ax, r8w
jbe 0x14006aa6f
cmp word [rsi + 2], 0x7e
jb 0x14006ab4a
movzx eax, word [rsi + 4]
sub ax, 0x30
cmp ax, r8w
ja 0x14006ab4a
cmp word [rsi + 2], 0x7e
jb 0x14006aa7d
mov r13d, r12d
add rsi, 2
add rsi, 2
xor r12d, r12d
movzx eax, word [rsi]
sub ax, 0x30
cmp ax, r8w
ja 0x14006aaa3
movzx eax, word [rsi]
lea rcx, [r12 + r12*4]
add rsi, 2
lea r12, [rax + rcx*2 - 0x30]
jmp 0x14006aa84
movsxd rax, dword [rbx + 0x60]
cmp r12, rax
jae 0x14006ae2b
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x14006ae2b
mov r12, qword [rax + r12*8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, eax
test r13d, r13d
je 0x14006aaee
cmp word [r12], 0x22
jne 0x14006aaee
cmp word [r12 + rbp*2 - 2], 0x22
mov rax, rbp
jne 0x14006aae8
dec ebp
dec ebp
add r12, 2
xor r13d, r13d
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.1400606c8
movsxd r14, dword [rsp + 0x54]
cmp r14d, r13d
jl 0x14006ab18
mov rax, qword [rbx + 0x68]
or dword [rsp + 0x54], 0xffffffff
mov r12, qword [rax + r14*8]
sub ebp, 1
js 0x14006ae4e
mov rdx, qword [rsp + 0x48]
movzx eax, word [r12]
add r12, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rdx, 2
sub ebp, 1
mov qword [rsp + 0x48], rdx
jns 0x14006ab26
jmp 0x14006ae84
mov ebp, 8
lea rdx, str._RANDOM_
mov rcx, rsi
mov r8d, ebp
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x14006ab7b
call fcn.140052f38
movabs rcx, 0x7fffffffffffffff
and rax, rcx
jmp 0x14006ab9a
lea rdx, str.___THIS_
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x14006abe4
lea rax, [rbx + 0x75bd036]
lea rcx, [rsp + 0xb0]
mov rdx, rax
add rsi, 0x10
mov word [rsp + 0xb0], r13w
call fcn.1400c3bd4
lea rcx, [rsp + 0xb0]
mov word [rsp + 0x152], r13w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r12, [rsp + 0xb0]
mov ebp, eax
cmp eax, 1
cmovl ebp, r13d
jmp 0x14006aaf1
add rsi, 2
mov r12, rsi
movzx eax, word [rsi]
cmp ax, r13w
je 0x14006ac35
mov edi, 0x25
lea r15d, [rdi - 0x1c]
cmp ax, di
je 0x14006ac2b
cmp ax, 0x3d
je 0x14006ac2b
cmp r15w, ax
ja 0x14006ac14
cmp ax, 0xd
jbe 0x14006ac2b
mov ecx, 0x20
cmp cx, ax
je 0x14006ac2b
add rsi, 2
mov ax, word [rsi]
cmp ax, r13w
jne 0x14006abfd
mov rdi, qword [rsp + 0x58]
mov r15b, byte [rsp + 0x40]
mov rbp, rsi
mov ecx, 0x25
mov rax, rsi
sub rbp, r14
mov qword [rsp + 0x1a0], rax
movsx r15d, r15b
sar rbp, 1
cmp word [rsi], cx
je 0x14006ac98
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.1400606c8
sub ebp, 1
js 0x14006ae23
mov rdx, qword [rsp + 0x48]
movzx eax, word [r14]
add r14, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rdx, 2
sub ebp, 1
mov qword [rsp + 0x48], rdx
jns 0x14006ac75
jmp 0x14006ae7c
xor ecx, ecx
cmp byte [rsp + 0x50], cl
jne 0x14006acda
cmp word [r12], 0x26
je 0x14006acb8
lea edx, [rcx + 0x5e]
cmp byte [rsp + 0x40], cl
je 0x14006acdf
cmp dx, word [r12]
je 0x14006acdf
add rsi, 2
cmp word [r12], 0x26
mov r14, r12
jne 0x14006ad74
add r12, 2
mov r15d, 1
jmp 0x14006ad74
mov edx, 0x5e
add rsi, 2
cmp dx, word [r12]
jne 0x14006acf1
add r12, 2
mov r13b, 8
mov r14, r12
mov r8d, dword [rsp + 0x70]
mov word [rdi], cx
mov word [rax], cx
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
cmp eax, ecx
mov ebp, eax
jle 0x14006ad45
cmp word [rdi], cx
jne 0x14006ad45
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x70], rdi
call fcn.14005828c
mov r8d, edi
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
mov ebp, eax
mov rax, qword [rsp + 0x1a0]
mov edx, 0x25
mov word [rax], dx
cmp word [rdi], cx
jne 0x14006ae0b
cmp r13b, cl
jne 0x14006ae3e
mov r13b, 1
cmp byte [rsp + 0x50], cl
jne 0x14006ae3e
mov word [rax], cx
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
mov rdx, r14
call fcn.14001b570
mov rcx, qword [rsp + 0x1a0]
mov edx, 0x25
mov word [rcx], dx
xor ecx, ecx
cmp rax, rcx
jne 0x14006adc2
cmp r15d, ecx
jne 0x14006ae3e
cmp r13b, cl
jne 0x14006ae3e
mov rax, qword [rsp + 0x1a0]
mov r13b, 1
jmp 0x14006acf4
mov r12, qword [rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x80]
lea edx, [rax + 2]
mov ebp, eax
call fcn.1400606c8
sub ebp, 1
js 0x14006ae23
mov rdx, qword [rsp + 0x48]
movzx ecx, word [r12]
add r12, 2
mov word [rdx], cx
mov rdx, qword [rsp + 0x48]
add rdx, 2
sub ebp, 1
mov qword [rsp + 0x48], rdx
jns 0x14006adea
jmp 0x14006ae7c
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
mov r12, rdi
call fcn.1400606c8
sub ebp, 1
jns 0x14006ae58
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, 0x25
mov r15b, byte [rsp + 0x40]
jmp 0x14006a8ff
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, edx
jmp 0x14006ae34
mov bpl, byte [rsp + 0x1c0]
jmp 0x14006ae2e
mov rdx, qword [rsp + 0x48]
movzx eax, word [r12]
add r12, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rdx, 2
sub ebp, 1
mov qword [rsp + 0x48], rdx
jns 0x14006ae5d
mov r15b, byte [rsp + 0x40]
xor r13d, r13d
mov bpl, byte [rsp + 0x1c0]
mov r12d, 0x25
jmp 0x14006a904
mov rcx, qword [rsp + 0x1b0]
mov word [rdx], r13w
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rsp + 0x60]
sar rdx, 1
add rdx, 2
call fcn.14005828c
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x60]
sar rdi, 1
call fcn.14005041c
lea rbx, [0x14010ee80]
cmp rbx, r13
je 0x14006aee5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret