Function at 0x14006ed78
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x258
mov rdi, rcx
lea rcx, [0x14011af08]
mov r12, r8
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, byte [rdi + 0xd]
xor r13d, r13d
cmp dword [rsp + 0x2b8], r13d
setl bpl
and sil, 0x11
mov byte [rsp + 0x49], sil
mov sil, byte [rsp + 0x2c0]
mov byte [rsp + 0x4a], bpl
cmp bpl, r13b
jne 0x14006ede4
test sil, 0x40
je 0x14006ede9
mov byte [rsp + 0x49], r13b
mov eax, 0x50
lea rcx, [rsp + 0x58]
and sil, 1
mov rdx, rax
mov byte [rsp + 0x2c0], sil
mov qword [rsp + 0x78], rax
call fcn.14005bce8
lea rax, [rsp + 0xa0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x2b8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0xa8]
or r14d, 0xffffffff
mov rdx, r12
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x4c], r14d
mov qword [rsp + 0xa0], r13
call fcn.140064630
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x2a0]
xor r8d, r8d
mov r12d, 0x26
lea r13d, [r12 - 0x1d]
cmp rcx, qword [rsp + 0x70]
jae 0x14006f840
cmp word [r15], r8w
je 0x14006f840
lea rcx, [rsp + 0xa8]
call fcn.140064774
mov r9d, 0x25
xor r8d, r8d
cmp word [r15], r9w
je 0x14006eef1
mov rcx, qword [rsp + 0x40]
mov edx, 0x3dd
movzx eax, word [r15]
cmp ax, r8w
je 0x14006ee8a
cmp r9w, ax
je 0x14006ee8a
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add r15, 2
add rcx, 2
sub edx, 1
mov qword [rsp + 0x40], rcx
jns 0x14006eec5
jmp 0x14006ee8a
mov rbp, r15
cmp sil, r8b
je 0x14006f11a
cmp word [r15 + 2], r9w
jne 0x14006ef24
mov rax, qword [rsp + 0x40]
mov word [rax], r9w
mov rcx, qword [rsp + 0x40]
add rcx, 2
add r15, 4
mov qword [rsp + 0x40], rcx
jmp 0x14006ee8a
cmp word [r15 + 2], 0x23
jne 0x14006ef83
mov rdx, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rdx, r8
je 0x14006f7f1
movsxd rax, dword [rbx + 0x60]
mov rdx, qword [rdx + rax*8 + 0x10]
movzx eax, word [rdx]
cmp ax, r8w
je 0x14006f7f1
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add rdx, 2
add rcx, 2
mov qword [rsp + 0x40], rcx
mov ax, word [rdx]
cmp ax, r8w
jne 0x14006ef60
jmp 0x14006ee8a
cmp word [r15 + 2], 0x2a
jne 0x14006efaa
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14006f7f1
mov r14d, dword [rbx + 0x60]
jmp 0x14006efd2
cmp word [r15 + 2], 0x40
jne 0x14006efef
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14006f7f1
mov r14d, dword [rbx + 0x60]
inc r14d
movsxd rax, r14d
mov dword [rsp + 0x4c], r14d
mov rbp, qword [rbp + rax*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
jmp 0x14006f0b5
movzx eax, word [r15 + 2]
sub ax, 0x30
cmp ax, r13w
jbe 0x14006f021
mov eax, 0x7e
cmp word [r15 + 2], ax
jb 0x14006f11a
movzx eax, word [r15 + 4]
sub ax, 0x30
cmp ax, r13w
ja 0x14006f11a
mov eax, 0x7e
mov r12d, r8d
cmp word [r15 + 2], ax
jb 0x14006f037
mov r12d, r9d
add r15, 2
mov rbp, r8
add r15, 2
movzx eax, word [r15]
sub ax, 0x30
cmp ax, r13w
ja 0x14006f05c
movzx eax, word [r15]
lea rcx, [rbp + rbp*4]
lea rbp, [rax + rcx*2 - 0x30]
jmp 0x14006f03a
movsxd rax, dword [rbx + 0x60]
mov qword [rsp + 0x2a8], r15
cmp rbp, rax
jae 0x14006f7f1
mov rax, qword [rbx + 0x68]
cmp rax, r8
je 0x14006f7f1
mov rbp, qword [rax + rbp*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
movsxd rsi, eax
cmp r12d, ecx
je 0x14006f0af
cmp word [rbp], 0x22
jne 0x14006f0af
cmp word [rbp + rsi*2 - 2], 0x22
mov rax, rsi
jne 0x14006f0a9
dec esi
dec esi
add rbp, 2
mov r12d, 0x26
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.1400646c8
xor r8d, r8d
cmp r14d, r8d
jl 0x14006f0e1
mov rax, qword [rbx + 0x68]
movsxd rcx, r14d
or r14d, 0xffffffff
mov rbp, qword [rax + rcx*8]
mov dword [rsp + 0x4c], r14d
sub esi, 1
js 0x14006f7e9
mov rcx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add rcx, 2
sub esi, 1
mov qword [rsp + 0x40], rcx
jns 0x14006f0ef
mov sil, byte [rsp + 0x2c0]
jmp 0x14006ee8a
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r13, r15
mov rsi, r15
cmp r12w, word [r15]
jne 0x14006f13c
add rsi, 2
cmp r12w, word [rsi]
je 0x14006f132
lea rdx, str.RANDOM_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor ecx, ecx
cmp eax, ecx
jne 0x14006f16f
call fcn.1400569a0
movabs rcx, 0x7fffffffffffffff
and rax, rcx
xor r8d, r8d
jmp 0x14006f194
lea rdx, str.__THIS_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r8d, r8d
cmp eax, r8d
jne 0x14006f1ec
lea rax, [rbx + 0x75bd036]
lea r15, [rsi + 0xe]
lea rcx, [rsp + 0x1a0]
mov rdx, rax
mov qword [rsp + 0x2a8], r15
mov word [rsp + 0x1a0], r8w
call fcn.1400cac0c
lea rcx, [rsp + 0x1a0]
xor ebp, ebp
mov word [rsp + 0x242], bp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, 9
mov esi, eax
cmp eax, 1
cmovl esi, ebp
lea rbp, [rsp + 0x1a0]
jmp 0x14006f0b5
movzx eax, word [r15]
mov r9d, 0x25
cmp ax, r8w
je 0x14006f237
lea edx, [r9 - 0x1c]
cmp ax, r9w
je 0x14006f22f
cmp ax, 0x3d
je 0x14006f22f
cmp dx, ax
ja 0x14006f217
cmp ax, 0xd
jbe 0x14006f22f
mov ecx, 0x20
cmp cx, ax
je 0x14006f22f
add r15, 2
mov ax, word [r15]
cmp ax, r8w
jne 0x14006f200
mov qword [rsp + 0x2a8], r15
movsx eax, byte [rsp + 0x49]
mov rsi, r15
mov r12, r15
sub rsi, rbp
mov r14b, r8b
mov dword [rsp + 0x2a0], eax
sar rsi, 1
cmp word [r15], r9w
je 0x14006f299
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.1400646c8
sub esi, 1
js 0x14006f7e6
mov rcx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add rcx, 2
sub esi, 1
mov qword [rsp + 0x40], rcx
jns 0x14006f276
jmp 0x14006f82b
mov bpl, byte [rsp + 0x4a]
cmp bpl, r8b
jne 0x14006f2ed
mov ecx, 0x26
cmp word [r13], cx
je 0x14006f2be
cmp al, r8b
je 0x14006f2ed
lea eax, [rcx + 0x38]
cmp ax, word [r13]
je 0x14006f2ed
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r15, r13
cmp word [r13], cx
jne 0x14006f391
mov esi, 1
add r13, 2
mov dword [rsp + 0x2a0], esi
jmp 0x14006f398
add r15, 2
mov ecx, 0x5e
mov qword [rsp + 0x2a8], r15
cmp cx, word [r13]
jne 0x14006f30c
add r13, 2
mov r14b, 8
mov r15, r13
mov word [rdi], r8w
mov word [r12], r8w
mov r8d, dword [rsp + 0x78]
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r8d, r8d
cmp eax, r8d
mov esi, eax
jle 0x14006f367
cmp word [rdi], r8w
jne 0x14006f367
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x78], rdi
call fcn.14005bd74
mov r8d, edi
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r8d, r8d
mov esi, eax
mov r9d, 0x25
mov word [r12], r9w
cmp word [rdi], r8w
jne 0x14006f7ce
cmp r14b, r8b
jne 0x14006f7e9
mov r14b, 1
cmp bpl, r8b
jne 0x14006f7e9
mov esi, dword [rsp + 0x2a0]
mov rax, r15
mov rbp, r8
mov qword [rsp + 0x50], r8
cmp r15, r12
jae 0x14006f443
mov edx, 0x3f
movzx ecx, word [rax]
cmp cx, r8w
je 0x14006f443
add rax, 2
cmp dx, cx
je 0x14006f3ce
cmp rax, r12
jb 0x14006f3b1
jmp 0x14006f443
lea rbp, [rax - 2]
mov rcx, rbp
mov qword [rsp + 0x50], rcx
mov word [rbp], r8w
jmp 0x14006f3ef
mov edx, 0x3a
add rax, 2
cmp dx, cx
je 0x14006f3fa
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14006f3e1
jmp 0x14006f3ff
mov qword [rsp + 0x50], rax
cmp word [r12], r8w
je 0x14006f443
cmp r9w, word [r12 + 2]
jne 0x14006f443
lea rax, [r12 + 4]
mov ecx, 0x64
cmp cx, word [rax]
jne 0x14006f443
jmp 0x14006f429
cmp r9w, cx
je 0x14006f434
add rax, 2
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14006f41f
jmp 0x14006f443
mov r12, rax
add rax, 2
mov qword [rsp + 0x2a8], rax
mov word [r12], r8w
mov qword [rsp + 0x20], r8
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.140016e70
xor r8d, r8d
mov ecx, 0x25
mov word [r12], cx
cmp rbp, r8
je 0x14006f47d
lea ecx, [r8 + 0x3f]
mov word [rbp], cx
add rbp, 2
cmp rax, r8
jne 0x14006f4a1
cmp esi, r8d
jne 0x14006f7e9
cmp r14b, r8b
jne 0x14006f7e9
mov bpl, byte [rsp + 0x4a]
mov r14b, 1
jmp 0x14006f30f
mov r14, qword [rax + 0x18]
mov r15, qword [rax + 8]
movabs rax, 0x3fffffffffffffff
and r14, rax
mov rax, r14
cqo
sub rax, rdx
sar rax, 1
mov rsi, rax
cmp rbp, r8
je 0x14006f778
mov byte [rsp + 0x48], r8b
mov byte [rsp + 0x4b], r8b
mov byte [rsp + 0x2a0], r8b
mov r13b, r8b
mov r11, r8
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x80], r8
lea rcx, str.char
mov rdx, rbp
mov r8d, 4
mov r12b, 1
call fcn.1400553c8
xor esi, esi
cmp al, sil
jne 0x14006f638
lea rcx, str.short
mov r8d, 5
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f53b
add rbp, 0xa
mov r12b, 2
jmp 0x14006f638
lea rcx, str.long
mov r8d, 4
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f561
add rbp, 8
mov r12b, 4
jmp 0x14006f638
lea rcx, str.int64
mov r8d, 5
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f581
add rbp, 0xa
jmp 0x14006f59f
lea rcx, [0x1401051e0]
mov r8d, 3
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f5a7
add rbp, 6
mov r12b, 8
jmp 0x14006f638
lea rcx, str.float
mov r8d, 5
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f5cf
mov r12b, 4
add rbp, 0xa
mov byte [rsp + 0x48], r12b
jmp 0x14006f620
lea rcx, str.double
mov r8d, 6
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f5f7
mov r12b, 8
add rbp, 0xc
mov byte [rsp + 0x4b], r12b
jmp 0x14006f620
lea rcx, str.ldouble
mov r8d, 7
mov rdx, rbp
call fcn.1400553c8
cmp al, sil
je 0x14006f638
mov r12b, 8
add rbp, 0xe
mov byte [rsp + 0x2a0], r12b
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x88], rsi
movzx eax, r12b
mov ecx, 0x73
cmp cx, word [rbp]
cmove esi, eax
mov rax, qword [rsp + 0x50]
xor ebp, ebp
cmp rax, rbp
je 0x14006f689
lea ecx, [rbp + 0x7e]
cmp cx, word [rax]
jne 0x14006f668
add rax, 2
mov r13b, r12b
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14005fe50
mov r11, qword [rsp + 0x60]
cmp r13b, bpl
je 0x14006f689
movsx rax, r13b
imul r11, rax
movsx r8, r12b
lea rax, [r8 + r11]
cmp rax, r14
jle 0x14006f6a0
mov r11, r8
sub r11, r14
cmovs r11, rbp
lea rdx, [r11 + r15]
lea rcx, [rsp + 0x80]
call fcn.14001b6e8
mov word [rsp + 0xe0], bp
cmp byte [rsp + 0x2a0], bpl
jne 0x14006f6ca
cmp byte [rsp + 0x4b], bpl
je 0x14006f6d5
movsd xmm2, qword [rsp + 0x80]
jmp 0x14006f6e8
cmp byte [rsp + 0x48], bpl
je 0x14006f704
movd xmm2, dword [rsp + 0x80]
cvtps2pd xmm2, xmm2
movq r8, xmm2
lea rdx, [0x1401051c0]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14006f760
lea rcx, [rsp + 0xe0]
cmp sil, 1
jne 0x14006f71d
movsx r8d, byte [rsp + 0x80]
jmp 0x14006f73c
cmp sil, 2
jne 0x14006f72e
movsx r8d, word [rsp + 0x80]
jmp 0x14006f73c
cmp sil, 4
jne 0x14006f74b
mov r8d, dword [rsp + 0x80]
lea rdx, [0x1400fbd1c]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14006f760
mov r8, qword [rsp + 0x80]
lea rdx, [0x140100ee0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xe0]
lea r15, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.1400646c8
xor r8d, r8d
sub esi, 1
js 0x14006f7e9
mov rcx, qword [rsp + 0x40]
movzx eax, word [r15]
add r15, 2
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add rcx, 2
mov qword [rsp + 0x40], rcx
cmp ax, r8w
je 0x14006f7c3
sub esi, 1
jns 0x14006f795
mov r15, qword [rsp + 0x2a8]
jmp 0x14006f82e
sub rcx, 2
mov qword [rsp + 0x40], rcx
jmp 0x14006f7b9
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
mov rbp, rdi
call fcn.1400646c8
sub esi, 1
jns 0x14006f800
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x2a8]
jmp 0x14006f836
mov rcx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add rcx, 2
sub esi, 1
mov qword [rsp + 0x40], rcx
jns 0x14006f805
mov r15, qword [rsp + 0x2a8]
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov r14d, dword [rsp + 0x4c]
jmp 0x14006ee7f
mov word [rcx], r8w
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x2b0]
sub rdx, qword [rsp + 0x68]
sar rdx, 1
add rdx, 2
call fcn.14005bd74
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x68]
sar rdi, 1
call fcn.140053e80
lea rbx, [0x14011af08]
xor ecx, ecx
cmp rbx, rcx
je 0x14006f890
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret