Function at 0x14006f034
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, [0x14011bf08]
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 0x14006f0a0
test sil, 0x40
je 0x14006f0a5
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.14005bf78
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.140064914
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 0x14006fafc
cmp word [r15], r8w
je 0x14006fafc
lea rcx, [rsp + 0xa8]
call fcn.140064a58
mov r9d, 0x25
xor r8d, r8d
cmp word [r15], r9w
je 0x14006f1ad
mov rcx, qword [rsp + 0x40]
mov edx, 0x3dd
movzx eax, word [r15]
cmp ax, r8w
je 0x14006f146
cmp r9w, ax
je 0x14006f146
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add r15, 2
add rcx, 2
sub edx, 1
mov qword [rsp + 0x40], rcx
jns 0x14006f181
jmp 0x14006f146
mov rbp, r15
cmp sil, r8b
je 0x14006f3d6
cmp word [r15 + 2], r9w
jne 0x14006f1e0
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 0x14006f146
cmp word [r15 + 2], 0x23
jne 0x14006f23f
mov rdx, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rdx, r8
je 0x14006faad
movsxd rax, dword [rbx + 0x60]
mov rdx, qword [rdx + rax*8 + 0x10]
movzx eax, word [rdx]
cmp ax, r8w
je 0x14006faad
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 0x14006f21c
jmp 0x14006f146
cmp word [r15 + 2], 0x2a
jne 0x14006f266
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14006faad
mov r14d, dword [rbx + 0x60]
jmp 0x14006f28e
cmp word [r15 + 2], 0x40
jne 0x14006f2ab
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14006faad
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 0x14006f371
movzx eax, word [r15 + 2]
sub ax, 0x30
cmp ax, r13w
jbe 0x14006f2dd
mov eax, 0x7e
cmp word [r15 + 2], ax
jb 0x14006f3d6
movzx eax, word [r15 + 4]
sub ax, 0x30
cmp ax, r13w
ja 0x14006f3d6
mov eax, 0x7e
mov r12d, r8d
cmp word [r15 + 2], ax
jb 0x14006f2f3
mov r12d, r9d
add r15, 2
mov rbp, r8
add r15, 2
movzx eax, word [r15]
sub ax, 0x30
cmp ax, r13w
ja 0x14006f318
movzx eax, word [r15]
lea rcx, [rbp + rbp*4]
lea rbp, [rax + rcx*2 - 0x30]
jmp 0x14006f2f6
movsxd rax, dword [rbx + 0x60]
mov qword [rsp + 0x2a8], r15
cmp rbp, rax
jae 0x14006faad
mov rax, qword [rbx + 0x68]
cmp rax, r8
je 0x14006faad
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 0x14006f36b
cmp word [rbp], 0x22
jne 0x14006f36b
cmp word [rbp + rsi*2 - 2], 0x22
mov rax, rsi
jne 0x14006f365
dec esi
dec esi
add rbp, 2
mov r12d, 0x26
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.1400649ac
xor r8d, r8d
cmp r14d, r8d
jl 0x14006f39d
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 0x14006faa5
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 0x14006f3ab
mov sil, byte [rsp + 0x2c0]
jmp 0x14006f146
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r13, r15
mov rsi, r15
cmp r12w, word [r15]
jne 0x14006f3f8
add rsi, 2
cmp r12w, word [rsi]
je 0x14006f3ee
lea rdx, str.RANDOM_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor ecx, ecx
cmp eax, ecx
jne 0x14006f42b
call fcn.140056c2c
movabs rcx, 0x7fffffffffffffff
and rax, rcx
xor r8d, r8d
jmp 0x14006f450
lea rdx, str.__THIS_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r8d, r8d
cmp eax, r8d
jne 0x14006f4a8
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.1400cb494
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 0x14006f371
movzx eax, word [r15]
mov r9d, 0x25
cmp ax, r8w
je 0x14006f4f3
lea edx, [r9 - 0x1c]
cmp ax, r9w
je 0x14006f4eb
cmp ax, 0x3d
je 0x14006f4eb
cmp dx, ax
ja 0x14006f4d3
cmp ax, 0xd
jbe 0x14006f4eb
mov ecx, 0x20
cmp cx, ax
je 0x14006f4eb
add r15, 2
mov ax, word [r15]
cmp ax, r8w
jne 0x14006f4bc
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 0x14006f555
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.1400649ac
sub esi, 1
js 0x14006faa2
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 0x14006f532
jmp 0x14006fae7
mov bpl, byte [rsp + 0x4a]
cmp bpl, r8b
jne 0x14006f5a9
mov ecx, 0x26
cmp word [r13], cx
je 0x14006f57a
cmp al, r8b
je 0x14006f5a9
lea eax, [rcx + 0x38]
cmp ax, word [r13]
je 0x14006f5a9
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r15, r13
cmp word [r13], cx
jne 0x14006f64d
mov esi, 1
add r13, 2
mov dword [rsp + 0x2a0], esi
jmp 0x14006f654
add r15, 2
mov ecx, 0x5e
mov qword [rsp + 0x2a8], r15
cmp cx, word [r13]
jne 0x14006f5c8
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 0x14006f623
cmp word [rdi], r8w
jne 0x14006f623
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x78], rdi
call fcn.14005c004
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 0x14006fa8a
cmp r14b, r8b
jne 0x14006faa5
mov r14b, 1
cmp bpl, r8b
jne 0x14006faa5
mov esi, dword [rsp + 0x2a0]
mov rax, r15
mov rbp, r8
mov qword [rsp + 0x50], r8
cmp r15, r12
jae 0x14006f6ff
mov edx, 0x3f
movzx ecx, word [rax]
cmp cx, r8w
je 0x14006f6ff
add rax, 2
cmp dx, cx
je 0x14006f68a
cmp rax, r12
jb 0x14006f66d
jmp 0x14006f6ff
lea rbp, [rax - 2]
mov rcx, rbp
mov qword [rsp + 0x50], rcx
mov word [rbp], r8w
jmp 0x14006f6ab
mov edx, 0x3a
add rax, 2
cmp dx, cx
je 0x14006f6b6
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14006f69d
jmp 0x14006f6bb
mov qword [rsp + 0x50], rax
cmp word [r12], r8w
je 0x14006f6ff
cmp r9w, word [r12 + 2]
jne 0x14006f6ff
lea rax, [r12 + 4]
mov ecx, 0x64
cmp cx, word [rax]
jne 0x14006f6ff
jmp 0x14006f6e5
cmp r9w, cx
je 0x14006f6f0
add rax, 2
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14006f6db
jmp 0x14006f6ff
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.140016fb8
xor r8d, r8d
mov ecx, 0x25
mov word [r12], cx
cmp rbp, r8
je 0x14006f739
lea ecx, [r8 + 0x3f]
mov word [rbp], cx
add rbp, 2
cmp rax, r8
jne 0x14006f75d
cmp esi, r8d
jne 0x14006faa5
cmp r14b, r8b
jne 0x14006faa5
mov bpl, byte [rsp + 0x4a]
mov r14b, 1
jmp 0x14006f5cb
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 0x14006fa34
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.140055654
xor esi, esi
cmp al, sil
jne 0x14006f8f4
lea rcx, str.short
mov r8d, 5
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f7f7
add rbp, 0xa
mov r12b, 2
jmp 0x14006f8f4
lea rcx, str.long
mov r8d, 4
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f81d
add rbp, 8
mov r12b, 4
jmp 0x14006f8f4
lea rcx, str.int64
mov r8d, 5
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f83d
add rbp, 0xa
jmp 0x14006f85b
lea rcx, [0x140106210]
mov r8d, 3
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f863
add rbp, 6
mov r12b, 8
jmp 0x14006f8f4
lea rcx, str.float
mov r8d, 5
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f88b
mov r12b, 4
add rbp, 0xa
mov byte [rsp + 0x48], r12b
jmp 0x14006f8dc
lea rcx, str.double
mov r8d, 6
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f8b3
mov r12b, 8
add rbp, 0xc
mov byte [rsp + 0x4b], r12b
jmp 0x14006f8dc
lea rcx, str.ldouble
mov r8d, 7
mov rdx, rbp
call fcn.140055654
cmp al, sil
je 0x14006f8f4
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 0x14006f945
lea ecx, [rbp + 0x7e]
cmp cx, word [rax]
jne 0x14006f924
add rax, 2
mov r13b, r12b
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140060134
mov r11, qword [rsp + 0x60]
cmp r13b, bpl
je 0x14006f945
movsx rax, r13b
imul r11, rax
movsx r8, r12b
lea rax, [r8 + r11]
cmp rax, r14
jle 0x14006f95c
mov r11, r8
sub r11, r14
cmovs r11, rbp
lea rdx, [r11 + r15]
lea rcx, [rsp + 0x80]
call fcn.14001b870
mov word [rsp + 0xe0], bp
cmp byte [rsp + 0x2a0], bpl
jne 0x14006f986
cmp byte [rsp + 0x4b], bpl
je 0x14006f991
movsd xmm2, qword [rsp + 0x80]
jmp 0x14006f9a4
cmp byte [rsp + 0x48], bpl
je 0x14006f9c0
movd xmm2, dword [rsp + 0x80]
cvtps2pd xmm2, xmm2
movq r8, xmm2
lea rdx, [0x1401061f0]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14006fa1c
lea rcx, [rsp + 0xe0]
cmp sil, 1
jne 0x14006f9d9
movsx r8d, byte [rsp + 0x80]
jmp 0x14006f9f8
cmp sil, 2
jne 0x14006f9ea
movsx r8d, word [rsp + 0x80]
jmp 0x14006f9f8
cmp sil, 4
jne 0x14006fa07
mov r8d, dword [rsp + 0x80]
lea rdx, [0x1400fcd4c]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14006fa1c
mov r8, qword [rsp + 0x80]
lea rdx, [0x140101f10]
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.1400649ac
xor r8d, r8d
sub esi, 1
js 0x14006faa5
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 0x14006fa7f
sub esi, 1
jns 0x14006fa51
mov r15, qword [rsp + 0x2a8]
jmp 0x14006faea
sub rcx, 2
mov qword [rsp + 0x40], rcx
jmp 0x14006fa75
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
mov rbp, rdi
call fcn.1400649ac
sub esi, 1
jns 0x14006fabc
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x2a8]
jmp 0x14006faf2
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 0x14006fac1
mov r15, qword [rsp + 0x2a8]
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov r14d, dword [rsp + 0x4c]
jmp 0x14006f13b
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.14005c004
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x68]
sar rdi, 1
call fcn.140054110
lea rbx, [0x14011bf08]
xor ecx, ecx
cmp rbx, rcx
je 0x14006fb4c
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