Function at 0x14006a438
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, [0x14010ee78]
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 0x14006a4a5
test bpl, 0x40
je 0x14006a4ad
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.1400580ac
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.14006050c
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x1a0]
mov r12d, 0x25
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x68]
jae 0x14006aacf
cmp word [rsi], r13w
je 0x14006aacf
lea rcx, [rsp + 0x80]
call fcn.140060650
cmp word [rsi], r12w
je 0x14006a599
mov rdx, qword [rsp + 0x48]
mov ecx, 0x3dd
movzx eax, word [rsi]
cmp ax, r13w
je 0x14006a53c
cmp r12w, ax
je 0x14006a53c
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rsi, 2
add rdx, 2
sub ecx, 1
mov qword [rsp + 0x48], rdx
jns 0x14006a56e
jmp 0x14006a53c
mov r14, rsi
cmp bpl, r13b
je 0x14006a782
cmp word [rsi + 2], r12w
jne 0x14006a5cc
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 0x14006a53c
cmp word [rsi + 2], 0x23
jne 0x14006a622
mov rcx, qword [rbx + 0x68]
add rsi, 4
cmp rcx, r13
je 0x14006aa6c
movsxd rax, dword [rbx + 0x60]
mov rcx, qword [rcx + rax*8 + 0x10]
movzx eax, word [rcx]
cmp ax, r13w
je 0x14006aa6c
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 0x14006a5ff
jmp 0x14006a53c
cmp word [rsi + 2], 0x2a
jne 0x14006a63f
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x14006aa66
mov eax, dword [rbx + 0x60]
jmp 0x14006a65c
cmp word [rsi + 2], 0x40
jne 0x14006a676
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x14006aa66
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 0x14006a729
movzx eax, word [rsi + 2]
mov r8d, 9
sub ax, 0x30
cmp ax, r8w
jbe 0x14006a6a7
cmp word [rsi + 2], 0x7e
jb 0x14006a782
movzx eax, word [rsi + 4]
sub ax, 0x30
cmp ax, r8w
ja 0x14006a782
cmp word [rsi + 2], 0x7e
jb 0x14006a6b5
mov r13d, r12d
add rsi, 2
add rsi, 2
xor r12d, r12d
movzx eax, word [rsi]
sub ax, 0x30
cmp ax, r8w
ja 0x14006a6db
movzx eax, word [rsi]
lea rcx, [r12 + r12*4]
add rsi, 2
lea r12, [rax + rcx*2 - 0x30]
jmp 0x14006a6bc
movsxd rax, dword [rbx + 0x60]
cmp r12, rax
jae 0x14006aa63
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x14006aa63
mov r12, qword [rax + r12*8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, eax
test r13d, r13d
je 0x14006a726
cmp word [r12], 0x22
jne 0x14006a726
cmp word [r12 + rbp*2 - 2], 0x22
mov rax, rbp
jne 0x14006a720
dec ebp
dec ebp
add r12, 2
xor r13d, r13d
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.1400605a4
movsxd r14, dword [rsp + 0x54]
cmp r14d, r13d
jl 0x14006a750
mov rax, qword [rbx + 0x68]
or dword [rsp + 0x54], 0xffffffff
mov r12, qword [rax + r14*8]
sub ebp, 1
js 0x14006aa86
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 0x14006a75e
jmp 0x14006aabc
mov ebp, 8
lea rdx, str._RANDOM_
mov rcx, rsi
mov r8d, ebp
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x14006a7b3
call fcn.140052f10
movabs rcx, 0x7fffffffffffffff
and rax, rcx
jmp 0x14006a7d2
lea rdx, str.___THIS_
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x14006a81c
lea rax, [rbx + 0x75bd036]
lea rcx, [rsp + 0xb0]
mov rdx, rax
add rsi, 0x10
mov word [rsp + 0xb0], r13w
call fcn.1400c38f0
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 0x14006a729
add rsi, 2
mov r12, rsi
movzx eax, word [rsi]
cmp ax, r13w
je 0x14006a86d
mov edi, 0x25
lea r15d, [rdi - 0x1c]
cmp ax, di
je 0x14006a863
cmp ax, 0x3d
je 0x14006a863
cmp r15w, ax
ja 0x14006a84c
cmp ax, 0xd
jbe 0x14006a863
mov ecx, 0x20
cmp cx, ax
je 0x14006a863
add rsi, 2
mov ax, word [rsi]
cmp ax, r13w
jne 0x14006a835
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 0x14006a8d0
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.1400605a4
sub ebp, 1
js 0x14006aa5b
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 0x14006a8ad
jmp 0x14006aab4
xor ecx, ecx
cmp byte [rsp + 0x50], cl
jne 0x14006a912
cmp word [r12], 0x26
je 0x14006a8f0
lea edx, [rcx + 0x5e]
cmp byte [rsp + 0x40], cl
je 0x14006a917
cmp dx, word [r12]
je 0x14006a917
add rsi, 2
cmp word [r12], 0x26
mov r14, r12
jne 0x14006a9ac
add r12, 2
mov r15d, 1
jmp 0x14006a9ac
mov edx, 0x5e
add rsi, 2
cmp dx, word [r12]
jne 0x14006a929
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 0x14006a97d
cmp word [rdi], cx
jne 0x14006a97d
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x70], rdi
call fcn.140058138
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 0x14006aa43
cmp r13b, cl
jne 0x14006aa76
mov r13b, 1
cmp byte [rsp + 0x50], cl
jne 0x14006aa76
mov word [rax], cx
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
mov rdx, r14
call fcn.14001b59c
mov rcx, qword [rsp + 0x1a0]
mov edx, 0x25
mov word [rcx], dx
xor ecx, ecx
cmp rax, rcx
jne 0x14006a9fa
cmp r15d, ecx
jne 0x14006aa76
cmp r13b, cl
jne 0x14006aa76
mov rax, qword [rsp + 0x1a0]
mov r13b, 1
jmp 0x14006a92c
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.1400605a4
sub ebp, 1
js 0x14006aa5b
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 0x14006aa22
jmp 0x14006aab4
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
mov r12, rdi
call fcn.1400605a4
sub ebp, 1
jns 0x14006aa90
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, 0x25
mov r15b, byte [rsp + 0x40]
jmp 0x14006a537
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, edx
jmp 0x14006aa6c
mov bpl, byte [rsp + 0x1c0]
jmp 0x14006aa66
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 0x14006aa95
mov r15b, byte [rsp + 0x40]
xor r13d, r13d
mov bpl, byte [rsp + 0x1c0]
mov r12d, 0x25
jmp 0x14006a53c
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.140058138
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x60]
sar rdi, 1
call fcn.140050424
lea rbx, [0x14010ee78]
cmp rbx, r13
je 0x14006ab1d
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