Function at 0x14007a224
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, 0x260
mov rbx, rcx
lea rcx, [0x14013e190]
mov rbp, r8
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, byte [rbx + 0xd]
xor r15d, r15d
cmp dword [rsp + 0x2b8], r15d
setl al
and sil, 0x11
mov byte [rsp + 0x49], sil
mov sil, byte [rsp + 0x2c0]
mov byte [rsp + 0x48], al
cmp al, r15b
jne 0x14007a291
test sil, 0x40
je 0x14007a296
mov byte [rsp + 0x49], r15b
mov eax, 0x50
lea rcx, [rsp + 0x70]
and sil, 1
mov rdx, rax
mov byte [rsp + 0x2c0], sil
mov qword [rsp + 0xa0], rax
call fcn.140063694
lea rax, [rsp + 0xb8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x2b8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
lea rcx, [rsp + 0xc0]
or r14d, 0xffffffff
mov rdx, rbp
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0x98], r15
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0xb8], r15
call fcn.14006d7e8
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x2a0]
xor r9d, r9d
mov r15d, 0x26
lea r12d, [r15 + 0x58]
cmp rdx, qword [rsp + 0xa8]
jae 0x14007ad55
cmp word [r13], r9w
je 0x14007ad55
lea rcx, [rsp + 0xc0]
call fcn.14006d92c
mov r8d, 0x25
xor r9d, r9d
cmp word [r13], r8w
je 0x14007a3b2
mov rdx, qword [rsp + 0x40]
mov ecx, 0x3dd
movzx eax, word [r13]
cmp ax, r9w
je 0x14007a345
cmp r8w, ax
je 0x14007a345
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add r13, 2
add rdx, 2
sub ecx, 1
mov qword [rsp + 0x40], rdx
jns 0x14007a385
jmp 0x14007a345
mov rbp, r13
cmp sil, r9b
je 0x14007a561
cmp word [r13 + 2], r8w
jne 0x14007a3e5
mov rax, qword [rsp + 0x40]
mov word [rax], r8w
mov rdx, qword [rsp + 0x40]
add rdx, 2
add r13, 4
mov qword [rsp + 0x40], rdx
jmp 0x14007a345
cmp word [r13 + 2], 0x23
jne 0x14007a43c
mov rcx, qword [rdi + 0x68]
add r13, 4
cmp rcx, r9
je 0x14007ad15
movsxd rax, dword [rdi + 0x60]
mov rcx, qword [rcx + rax*8 + 0x10]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14007ad15
mov rdx, qword [rsp + 0x40]
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rcx, 2
add rdx, 2
mov qword [rsp + 0x40], rdx
mov ax, word [rcx]
cmp ax, r9w
jne 0x14007a419
jmp 0x14007a345
cmp word [r13 + 2], 0x2a
jne 0x14007a45b
mov rbp, qword [rdi + 0x68]
add r13, 4
cmp rbp, r9
je 0x14007ad15
mov r14d, dword [rdi + 0x60]
jmp 0x14007a47b
cmp word [r13 + 2], 0x40
jne 0x14007a499
mov rbp, qword [rdi + 0x68]
add r13, 4
cmp rbp, r9
je 0x14007ad15
mov r14d, dword [rdi + 0x60]
inc r14d
movsxd rax, r14d
mov dword [rsp + 0x58], r14d
mov rbp, qword [rbp + rax*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
jmp 0x14007a62c
movzx eax, word [r13 + 2]
mov r10d, 9
sub ax, 0x30
cmp ax, r10w
jbe 0x14007a4cc
cmp word [r13 + 2], r12w
jb 0x14007a561
movzx eax, word [r13 + 4]
sub ax, 0x30
cmp ax, r10w
ja 0x14007a561
mov eax, 0x7e
mov r12d, r9d
cmp word [r13 + 2], ax
jb 0x14007a4e2
mov r12d, r8d
add r13, 2
mov rbp, r9
add r13, 2
movzx eax, word [r13]
sub ax, 0x30
cmp ax, r10w
ja 0x14007a509
movzx eax, word [r13]
lea rcx, [rbp + rbp*4]
lea rbp, [rax + rcx*2 - 0x30]
jmp 0x14007a4e5
movsxd rax, dword [rdi + 0x60]
cmp rbp, rax
jae 0x14007ad15
mov rax, qword [rdi + 0x68]
cmp rax, r9
je 0x14007ad15
mov rbp, qword [rax + rbp*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r15d, r15d
movsxd rsi, eax
cmp r12d, r15d
je 0x14007a621
cmp word [rbp], 0x22
jne 0x14007a621
cmp word [rbp + rsi*2 - 2], 0x22
jne 0x14007a555
dec rsi
dec rsi
add rbp, 2
jmp 0x14007a621
add r13, 2
mov r12, r13
mov rsi, r13
cmp r15w, word [r13]
jne 0x14007a57c
add rsi, 2
cmp r15w, word [rsi]
je 0x14007a572
lea rdx, str.RANDOM_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r15d, r15d
cmp eax, r15d
jne 0x14007a5b1
call fcn.14005e04c
movabs rcx, 0x7fffffffffffffff
and rax, rcx
xor r9d, r9d
jmp 0x14007a5da
lea rdx, str.__THIS_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r9d, r9d
cmp eax, r9d
jne 0x14007a693
lea rax, [rdi + 0x75bd036]
lea rcx, [rsp + 0xf0]
mov rdx, rax
lea r13, [rsi + 0xe]
mov word [rsp + 0xf0], r9w
call fcn.1400e6d74
lea rcx, [rsp + 0xf0]
mov word [rsp + 0x192], r15w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rbp, [rsp + 0xf0]
movsxd rsi, eax
cmp rsi, 1
cmovl rsi, r15
mov r12d, 0x7e
lea r15d, [r12 - 0x58]
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d880
xor r9d, r9d
cmp r14d, r9d
jl 0x14007a658
mov rax, qword [rdi + 0x68]
movsxd rcx, r14d
or r14d, 0xffffffff
mov rbp, qword [rax + rcx*8]
mov dword [rsp + 0x58], r14d
sub rsi, 1
js 0x14007ad0d
mov rdx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rdx, 2
sub rsi, 1
mov qword [rsp + 0x40], rdx
jns 0x14007a667
mov sil, byte [rsp + 0x2c0]
jmp 0x14007a345
movzx eax, word [r13]
mov r8d, 0x25
cmp ax, r9w
je 0x14007a6dd
lea ebx, [r8 - 0x1c]
cmp ax, r8w
je 0x14007a6d8
cmp ax, 0x3d
je 0x14007a6d8
cmp bx, ax
ja 0x14007a6bf
cmp ax, 0xd
jbe 0x14007a6d8
mov ecx, 0x20
cmp cx, ax
je 0x14007a6d8
add r13, 2
mov ax, word [r13]
cmp ax, r9w
jne 0x14007a6a8
mov rbx, qword [rsp + 0x70]
movsx eax, byte [rsp + 0x49]
mov rsi, r13
mov r14, r13
sub rsi, rbp
mov dword [rsp + 0x2a0], eax
sar rsi, 1
mov qword [rsp + 0x78], rsi
cmp word [r13], r8w
je 0x14007a744
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d880
sub rsi, 1
js 0x14007ad0a
mov rdx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rdx, 2
sub rsi, 1
mov qword [rsp + 0x40], rdx
jns 0x14007a720
jmp 0x14007ad40
cmp byte [rsp + 0x48], r9b
jne 0x14007a794
mov ecx, 0x26
cmp word [r12], cx
je 0x14007a766
cmp al, r9b
je 0x14007a794
lea eax, [rcx + 0x38]
cmp ax, word [r12]
je 0x14007a794
mov rdx, r12
add r13, 2
mov qword [rsp + 0xb0], rdx
cmp word [r12], cx
jne 0x14007a90d
add r12, 2
mov dword [rsp + 0x2a0], 1
jmp 0x14007a90d
mov ecx, 0x5e
add r13, 2
cmp cx, word [r12]
jne 0x14007a7ab
add r12, 2
mov r15b, 8
mov qword [rsp + 0xb0], r12
mov word [rbx], r9w
mov rax, r12
movabs rcx, 0x7fffffffffffffff
mov rbp, r9
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x90], rcx
cmp r12, r14
jae 0x14007a86e
mov esi, 0x3a
cmp word [rax], r9w
je 0x14007a86e
cmp si, word [rax]
jne 0x14007a800
mov ecx, 0x7e
cmp cx, word [rax + 2]
je 0x14007a810
add rax, 2
mov qword [rsp + 0x60], rax
cmp rax, r14
jae 0x14007a86e
jmp 0x14007a7ea
mov word [rax], r9w
add qword [rsp + 0x60], 4
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov rbp, rax
call fcn.1400c1194
mov r11, qword [rsp + 0x60]
mov eax, 0x2c
cmp ax, word [r11]
je 0x14007a850
mov eax, 0x3b
cmp ax, word [r11]
je 0x14007a850
cmp si, word [r11]
jne 0x14007a86b
add r11, 2
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r11
call fcn.1400c1194
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, rbx
mov rcx, r12
mov word [r14], r9w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r9d, r9d
mov esi, eax
cmp rsi, r9
mov qword [rsp + 0x78], rsi
jle 0x14007a8d1
cmp word [rbx], r9w
jne 0x14007a8d1
lea ebx, [rsi + 0x64]
lea rcx, [rsp + 0x70]
movsxd rdx, ebx
mov qword [rsp + 0xa0], rbx
call fcn.140063720
mov r8d, ebx
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r9d, r9d
mov esi, eax
mov qword [rsp + 0x78], rsi
mov r8d, 0x25
mov word [r14], r8w
cmp rbp, r9
jne 0x14007ac75
cmp word [rbx], r9w
jne 0x14007ac70
cmp r15b, r9b
jne 0x14007ad0d
mov r15b, 1
cmp byte [rsp + 0x48], r9b
jne 0x14007ad0d
mov rdx, qword [rsp + 0xb0]
movabs rcx, 0x7fffffffffffffff
mov rax, rdx
mov qword [rsp + 0x50], rdx
mov rsi, r9
mov rbp, r9
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x88], rcx
cmp rdx, r14
jae 0x14007ab2a
mov r10d, 0x3a
lea r11d, [r10 + 5]
movzx ecx, word [rax]
cmp cx, r9w
je 0x14007ab2a
cmp r10w, cx
jne 0x14007a96b
mov r11d, 0x7e
cmp r11w, word [rax + 2]
je 0x14007a989
mov r11d, 0x3f
add rax, 2
mov qword [rsp + 0x50], rax
cmp r11w, cx
je 0x14007aabd
cmp rax, r14
jae 0x14007ab2a
jmp 0x14007a945
mov word [rax], r9w
mov qword [rsp + 0x20], r9
xor r8d, r8d
or r9d, 0xffffffff
mov rcx, rdi
call fcn.140018978
mov rcx, qword [rsp + 0x50]
mov ebp, 0x3a
mov word [rcx], bp
add qword [rsp + 0x50], 4
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rsi, rax
call fcn.1400c1194
mov r11, qword [rsp + 0x50]
lea eax, [rbp - 0xe]
cmp ax, word [r11]
je 0x14007a9e3
lea eax, [rbp + 1]
cmp ax, word [r11]
je 0x14007a9e3
cmp bp, word [r11]
jne 0x14007aa03
add r11, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r11
call fcn.1400c1194
mov r11, qword [rsp + 0x50]
movzx eax, word [r11]
xor r9d, r9d
cmp ax, r9w
je 0x14007aa33
lea r8d, [r9 + 0x25]
cmp r8w, ax
je 0x14007aa2f
add r11, 2
mov qword [rsp + 0x50], r11
mov ax, word [r11]
cmp ax, r9w
jne 0x14007aa14
jmp 0x14007aa33
lea r13, [r11 + 2]
cmp rsi, r9
je 0x14007ab67
mov rbp, qword [rsi + 8]
mov rax, qword [rsi + 0x18]
mov rsi, qword [rsp + 0x88]
movabs rcx, 0x3fffffffffffffff
mov rdx, rbp
and rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rdx
cmp rcx, rax
lea r8, [rbp + rax*2]
cmovg rcx, rax
cmp rcx, r9
mov qword [rsp + 0x68], rcx
jl 0x14007aba1
cmp rsi, r9
jl 0x14007aba1
cmp rcx, r9
jle 0x14007ac16
lea rax, [rbp + rcx*2]
cmp rbp, rax
jae 0x14007abea
cmp word [rdx], r9w
je 0x14007ab86
add rdx, 2
mov qword [rsp + 0x50], rdx
cmp rdx, rax
jb 0x14007aaa0
jmp 0x14007abea
lea rsi, [rax - 2]
mov rbp, rsi
mov word [rsi], r9w
mov rax, qword [rsp + 0x50]
jmp 0x14007aade
add rax, 2
mov qword [rsp + 0x50], rax
cmp r10w, cx
je 0x14007aae9
movzx ecx, word [rax]
cmp cx, r9w
jne 0x14007aacf
jmp 0x14007aaec
mov rbp, rax
cmp word [r14], r9w
je 0x14007ab2a
cmp r8w, word [r14 + 2]
jne 0x14007ab2a
lea rax, [r14 + 4]
mov ecx, 0x64
cmp cx, word [rax]
jne 0x14007ab2a
jmp 0x14007ab13
cmp r8w, cx
je 0x14007ab23
add rax, 2
mov qword [rsp + 0x50], rax
movzx ecx, word [rax]
cmp cx, r9w
jne 0x14007ab09
jmp 0x14007ab2a
mov r14, rax
lea r13, [rax + 2]
mov word [r14], r9w
mov qword [rsp + 0x20], r9
xor r8d, r8d
or r9d, 0xffffffff
mov rcx, rdi
call fcn.140018978
xor r9d, r9d
mov ecx, 0x25
mov word [r14], cx
cmp rsi, r9
je 0x14007ab5e
lea ecx, [r9 + 0x3f]
mov word [rsi], cx
add rsi, 2
cmp rax, r9
jne 0x14007abf1
cmp dword [rsp + 0x2a0], r9d
jne 0x14007ad0d
cmp r15b, r9b
jne 0x14007ad0d
mov r15b, 1
jmp 0x14007a7b3
mov rcx, rdx
mov rsi, r9
mov qword [rsp + 0x88], r9
sub rcx, rbp
sar rcx, 1
mov qword [rsp + 0x68], rcx
jmp 0x14007abea
cmp word [rbp], r9w
je 0x14007abbc
cmp rdx, r8
jae 0x14007abbc
add rdx, 2
mov qword [rsp + 0x50], rdx
cmp word [rdx], r9w
jne 0x14007aba8
sub rdx, rbp
sar rdx, 1
cmp rcx, r9
jge 0x14007abd3
add rcx, rdx
cmovs rcx, r9
mov qword [rsp + 0x68], rcx
cmp rsi, r9
jge 0x14007abea
sub rdx, rcx
add rsi, rdx
cmovs rsi, r9
mov qword [rsp + 0x88], rsi
lea rbp, [rbp + rcx*2]
jmp 0x14007ac16
lea r9, [rsp + 0x1a0]
lea rdx, [rsp + 0x78]
mov r8, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.14006d9d0
mov rsi, qword [rsp + 0x78]
mov rbp, rax
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d880
xor r9d, r9d
sub rsi, 1
js 0x14007ad0d
mov rdx, qword [rsp + 0x40]
movzx ecx, word [rbp]
add rbp, 2
mov word [rdx], cx
mov rdx, qword [rsp + 0x40]
add rdx, 2
mov qword [rsp + 0x40], rdx
cmp cx, r9w
je 0x14007ac62
sub rsi, 1
jns 0x14007ac38
jmp 0x14007ad43
sub rdx, 2
mov qword [rsp + 0x40], rdx
jmp 0x14007ad43
mov rbp, rbx
jmp 0x14007acf4
mov eax, 0x3a
mov word [rbp], ax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x90]
cmp rcx, rsi
cmovg rcx, rsi
cmp rdx, rsi
cmovg rdx, rsi
cmp rcx, r9
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x90], rdx
jge 0x14007acc9
mov rax, rsi
neg rax
cmp rcx, rax
cmovl rcx, rax
add rcx, rsi
mov qword [rsp + 0x80], rcx
mov rax, rsi
sub rax, rcx
cmp rdx, r9
jge 0x14007ace2
lea rsi, [rax + rdx]
cmp rsi, r9
jge 0x14007acf0
mov rsi, r9
jmp 0x14007acf0
cmp rsi, rax
cmovg rsi, rax
cmp rsi, rdx
cmovg rsi, rdx
lea rbp, [rbx + rcx*2]
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d880
sub rsi, 1
jns 0x14007ad1c
xor r9d, r9d
mov sil, byte [rsp + 0x2c0]
mov rdx, qword [rsp + 0x40]
jmp 0x14007ad4b
mov rdx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rdx, 2
sub rsi, 1
mov qword [rsp + 0x40], rdx
jns 0x14007ad21
xor r9d, r9d
mov sil, byte [rsp + 0x2c0]
mov r14d, dword [rsp + 0x58]
jmp 0x14007a33b
mov rcx, qword [rsp + 0x2b0]
mov word [rdx], r9w
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rsp + 0x98]
sar rdx, 1
add rdx, 2
call fcn.140063720
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
sub rbx, qword [rsp + 0x98]
sar rbx, 1
call fcn.14005b104
lea rdi, [0x14013e190]
xor r15d, r15d
cmp rdi, r15
je 0x14007adac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret