Function at 0x14006fb04
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, [0x14011cf88]
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 0x14006fb70
test sil, 0x40
je 0x14006fb75
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.14005c9e0
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.140065268
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 0x1400705cc
cmp word [r15], r8w
je 0x1400705cc
lea rcx, [rsp + 0xa8]
call fcn.1400653ac
mov r9d, 0x25
xor r8d, r8d
cmp word [r15], r9w
je 0x14006fc7d
mov rcx, qword [rsp + 0x40]
mov edx, 0x3dd
movzx eax, word [r15]
cmp ax, r8w
je 0x14006fc16
cmp r9w, ax
je 0x14006fc16
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add r15, 2
add rcx, 2
sub edx, 1
mov qword [rsp + 0x40], rcx
jns 0x14006fc51
jmp 0x14006fc16
mov rbp, r15
cmp sil, r8b
je 0x14006fea6
cmp word [r15 + 2], r9w
jne 0x14006fcb0
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 0x14006fc16
cmp word [r15 + 2], 0x23
jne 0x14006fd0f
mov rdx, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rdx, r8
je 0x14007057d
movsxd rax, dword [rbx + 0x60]
mov rdx, qword [rdx + rax*8 + 0x10]
movzx eax, word [rdx]
cmp ax, r8w
je 0x14007057d
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 0x14006fcec
jmp 0x14006fc16
cmp word [r15 + 2], 0x2a
jne 0x14006fd36
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14007057d
mov r14d, dword [rbx + 0x60]
jmp 0x14006fd5e
cmp word [r15 + 2], 0x40
jne 0x14006fd7b
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14007057d
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 0x14006fe41
movzx eax, word [r15 + 2]
sub ax, 0x30
cmp ax, r13w
jbe 0x14006fdad
mov eax, 0x7e
cmp word [r15 + 2], ax
jb 0x14006fea6
movzx eax, word [r15 + 4]
sub ax, 0x30
cmp ax, r13w
ja 0x14006fea6
mov eax, 0x7e
mov r12d, r8d
cmp word [r15 + 2], ax
jb 0x14006fdc3
mov r12d, r9d
add r15, 2
mov rbp, r8
add r15, 2
movzx eax, word [r15]
sub ax, 0x30
cmp ax, r13w
ja 0x14006fde8
movzx eax, word [r15]
lea rcx, [rbp + rbp*4]
lea rbp, [rax + rcx*2 - 0x30]
jmp 0x14006fdc6
movsxd rax, dword [rbx + 0x60]
mov qword [rsp + 0x2a8], r15
cmp rbp, rax
jae 0x14007057d
mov rax, qword [rbx + 0x68]
cmp rax, r8
je 0x14007057d
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 0x14006fe3b
cmp word [rbp], 0x22
jne 0x14006fe3b
cmp word [rbp + rsi*2 - 2], 0x22
mov rax, rsi
jne 0x14006fe35
dec esi
dec esi
add rbp, 2
mov r12d, 0x26
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.140065300
xor r8d, r8d
cmp r14d, r8d
jl 0x14006fe6d
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 0x140070575
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 0x14006fe7b
mov sil, byte [rsp + 0x2c0]
jmp 0x14006fc16
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r13, r15
mov rsi, r15
cmp r12w, word [r15]
jne 0x14006fec8
add rsi, 2
cmp r12w, word [rsi]
je 0x14006febe
lea rdx, str.RANDOM_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor ecx, ecx
cmp eax, ecx
jne 0x14006fefb
call fcn.140057774
movabs rcx, 0x7fffffffffffffff
and rax, rcx
xor r8d, r8d
jmp 0x14006ff20
lea rdx, str.__THIS_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r8d, r8d
cmp eax, r8d
jne 0x14006ff78
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.1400cca40
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 0x14006fe41
movzx eax, word [r15]
mov r9d, 0x25
cmp ax, r8w
je 0x14006ffc3
lea edx, [r9 - 0x1c]
cmp ax, r9w
je 0x14006ffbb
cmp ax, 0x3d
je 0x14006ffbb
cmp dx, ax
ja 0x14006ffa3
cmp ax, 0xd
jbe 0x14006ffbb
mov ecx, 0x20
cmp cx, ax
je 0x14006ffbb
add r15, 2
mov ax, word [r15]
cmp ax, r8w
jne 0x14006ff8c
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 0x140070025
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.140065300
sub esi, 1
js 0x140070572
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 0x140070002
jmp 0x1400705b7
mov bpl, byte [rsp + 0x4a]
cmp bpl, r8b
jne 0x140070079
mov ecx, 0x26
cmp word [r13], cx
je 0x14007004a
cmp al, r8b
je 0x140070079
lea eax, [rcx + 0x38]
cmp ax, word [r13]
je 0x140070079
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r15, r13
cmp word [r13], cx
jne 0x14007011d
mov esi, 1
add r13, 2
mov dword [rsp + 0x2a0], esi
jmp 0x140070124
add r15, 2
mov ecx, 0x5e
mov qword [rsp + 0x2a8], r15
cmp cx, word [r13]
jne 0x140070098
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 0x1400700f3
cmp word [rdi], r8w
jne 0x1400700f3
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x78], rdi
call fcn.14005ca6c
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 0x14007055a
cmp r14b, r8b
jne 0x140070575
mov r14b, 1
cmp bpl, r8b
jne 0x140070575
mov esi, dword [rsp + 0x2a0]
mov rax, r15
mov rbp, r8
mov qword [rsp + 0x50], r8
cmp r15, r12
jae 0x1400701cf
mov edx, 0x3f
movzx ecx, word [rax]
cmp cx, r8w
je 0x1400701cf
add rax, 2
cmp dx, cx
je 0x14007015a
cmp rax, r12
jb 0x14007013d
jmp 0x1400701cf
lea rbp, [rax - 2]
mov rcx, rbp
mov qword [rsp + 0x50], rcx
mov word [rbp], r8w
jmp 0x14007017b
mov edx, 0x3a
add rax, 2
cmp dx, cx
je 0x140070186
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14007016d
jmp 0x14007018b
mov qword [rsp + 0x50], rax
cmp word [r12], r8w
je 0x1400701cf
cmp r9w, word [r12 + 2]
jne 0x1400701cf
lea rax, [r12 + 4]
mov ecx, 0x64
cmp cx, word [rax]
jne 0x1400701cf
jmp 0x1400701b5
cmp r9w, cx
je 0x1400701c0
add rax, 2
movzx ecx, word [rax]
cmp cx, r8w
jne 0x1400701ab
jmp 0x1400701cf
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.1400174d4
xor r8d, r8d
mov ecx, 0x25
mov word [r12], cx
cmp rbp, r8
je 0x140070209
lea ecx, [r8 + 0x3f]
mov word [rbp], cx
add rbp, 2
cmp rax, r8
jne 0x14007022d
cmp esi, r8d
jne 0x140070575
cmp r14b, r8b
jne 0x140070575
mov bpl, byte [rsp + 0x4a]
mov r14b, 1
jmp 0x14007009b
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 0x140070504
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.14005615c
xor esi, esi
cmp al, sil
jne 0x1400703c4
lea rcx, str.short
mov r8d, 5
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x1400702c7
add rbp, 0xa
mov r12b, 2
jmp 0x1400703c4
lea rcx, str.long
mov r8d, 4
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x1400702ed
add rbp, 8
mov r12b, 4
jmp 0x1400703c4
lea rcx, str.int64
mov r8d, 5
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x14007030d
add rbp, 0xa
jmp 0x14007032b
lea rcx, [0x1401074c0]
mov r8d, 3
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x140070333
add rbp, 6
mov r12b, 8
jmp 0x1400703c4
lea rcx, str.float
mov r8d, 5
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x14007035b
mov r12b, 4
add rbp, 0xa
mov byte [rsp + 0x48], r12b
jmp 0x1400703ac
lea rcx, str.double
mov r8d, 6
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x140070383
mov r12b, 8
add rbp, 0xc
mov byte [rsp + 0x4b], r12b
jmp 0x1400703ac
lea rcx, str.ldouble
mov r8d, 7
mov rdx, rbp
call fcn.14005615c
cmp al, sil
je 0x1400703c4
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 0x140070415
lea ecx, [rbp + 0x7e]
cmp cx, word [rax]
jne 0x1400703f4
add rax, 2
mov r13b, r12b
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140060b48
mov r11, qword [rsp + 0x60]
cmp r13b, bpl
je 0x140070415
movsx rax, r13b
imul r11, rax
movsx r8, r12b
lea rax, [r8 + r11]
cmp rax, r14
jle 0x14007042c
mov r11, r8
sub r11, r14
cmovs r11, rbp
lea rdx, [r11 + r15]
lea rcx, [rsp + 0x80]
call fcn.14001bd80
mov word [rsp + 0xe0], bp
cmp byte [rsp + 0x2a0], bpl
jne 0x140070456
cmp byte [rsp + 0x4b], bpl
je 0x140070461
movsd xmm2, qword [rsp + 0x80]
jmp 0x140070474
cmp byte [rsp + 0x48], bpl
je 0x140070490
movd xmm2, dword [rsp + 0x80]
cvtps2pd xmm2, xmm2
movq r8, xmm2
lea rdx, [0x1401074a0]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1400704ec
lea rcx, [rsp + 0xe0]
cmp sil, 1
jne 0x1400704a9
movsx r8d, byte [rsp + 0x80]
jmp 0x1400704c8
cmp sil, 2
jne 0x1400704ba
movsx r8d, word [rsp + 0x80]
jmp 0x1400704c8
cmp sil, 4
jne 0x1400704d7
mov r8d, dword [rsp + 0x80]
lea rdx, [0x1400fde8c]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1400704ec
mov r8, qword [rsp + 0x80]
lea rdx, [0x1401031a0]
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.140065300
xor r8d, r8d
sub esi, 1
js 0x140070575
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 0x14007054f
sub esi, 1
jns 0x140070521
mov r15, qword [rsp + 0x2a8]
jmp 0x1400705ba
sub rcx, 2
mov qword [rsp + 0x40], rcx
jmp 0x140070545
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
mov rbp, rdi
call fcn.140065300
sub esi, 1
jns 0x14007058c
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x2a8]
jmp 0x1400705c2
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 0x140070591
mov r15, qword [rsp + 0x2a8]
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov r14d, dword [rsp + 0x4c]
jmp 0x14006fc0b
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.14005ca6c
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x68]
sar rdi, 1
call fcn.140054c44
lea rbx, [0x14011cf88]
xor ecx, ecx
cmp rbx, rcx
je 0x14007061c
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