Function at 0x140069518
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, [0x14010ce50]
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 0x140069585
test bpl, 0x40
je 0x14006958d
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.1400571c8
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.14005f5a8
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x1a0]
mov r12d, 0x25
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x68]
jae 0x140069baf
cmp word [rsi], r13w
je 0x140069baf
lea rcx, [rsp + 0x80]
call fcn.14005f6ec
cmp word [rsi], r12w
je 0x140069679
mov rdx, qword [rsp + 0x48]
mov ecx, 0x3dd
movzx eax, word [rsi]
cmp ax, r13w
je 0x14006961c
cmp r12w, ax
je 0x14006961c
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rsi, 2
add rdx, 2
sub ecx, 1
mov qword [rsp + 0x48], rdx
jns 0x14006964e
jmp 0x14006961c
mov r14, rsi
cmp bpl, r13b
je 0x140069862
cmp word [rsi + 2], r12w
jne 0x1400696ac
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 0x14006961c
cmp word [rsi + 2], 0x23
jne 0x140069702
mov rcx, qword [rbx + 0x68]
add rsi, 4
cmp rcx, r13
je 0x140069b4c
movsxd rax, dword [rbx + 0x60]
mov rcx, qword [rcx + rax*8 + 0x10]
movzx eax, word [rcx]
cmp ax, r13w
je 0x140069b4c
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 0x1400696df
jmp 0x14006961c
cmp word [rsi + 2], 0x2a
jne 0x14006971f
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x140069b46
mov eax, dword [rbx + 0x60]
jmp 0x14006973c
cmp word [rsi + 2], 0x40
jne 0x140069756
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x140069b46
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 0x140069809
movzx eax, word [rsi + 2]
mov r8d, 9
sub ax, 0x30
cmp ax, r8w
jbe 0x140069787
cmp word [rsi + 2], 0x7e
jb 0x140069862
movzx eax, word [rsi + 4]
sub ax, 0x30
cmp ax, r8w
ja 0x140069862
cmp word [rsi + 2], 0x7e
jb 0x140069795
mov r13d, r12d
add rsi, 2
add rsi, 2
xor r12d, r12d
movzx eax, word [rsi]
sub ax, 0x30
cmp ax, r8w
ja 0x1400697bb
movzx eax, word [rsi]
lea rcx, [r12 + r12*4]
add rsi, 2
lea r12, [rax + rcx*2 - 0x30]
jmp 0x14006979c
movsxd rax, dword [rbx + 0x60]
cmp r12, rax
jae 0x140069b43
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x140069b43
mov r12, qword [rax + r12*8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, eax
test r13d, r13d
je 0x140069806
cmp word [r12], 0x22
jne 0x140069806
cmp word [r12 + rbp*2 - 2], 0x22
mov rax, rbp
jne 0x140069800
dec ebp
dec ebp
add r12, 2
xor r13d, r13d
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.14005f640
movsxd r14, dword [rsp + 0x54]
cmp r14d, r13d
jl 0x140069830
mov rax, qword [rbx + 0x68]
or dword [rsp + 0x54], 0xffffffff
mov r12, qword [rax + r14*8]
sub ebp, 1
js 0x140069b66
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 0x14006983e
jmp 0x140069b9c
mov ebp, 8
lea rdx, str._RANDOM_
mov rcx, rsi
mov r8d, ebp
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x140069893
call fcn.140052044
movabs rcx, 0x7fffffffffffffff
and rax, rcx
jmp 0x1400698b2
lea rdx, str.___THIS_
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x1400698fc
lea rax, [rbx + 0x75bd036]
lea rcx, [rsp + 0xb0]
mov rdx, rax
add rsi, 0x10
mov word [rsp + 0xb0], r13w
call fcn.1400c1728
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 0x140069809
add rsi, 2
mov r12, rsi
movzx eax, word [rsi]
cmp ax, r13w
je 0x14006994d
mov edi, 0x25
lea r15d, [rdi - 0x1c]
cmp ax, di
je 0x140069943
cmp ax, 0x3d
je 0x140069943
cmp r15w, ax
ja 0x14006992c
cmp ax, 0xd
jbe 0x140069943
mov ecx, 0x20
cmp cx, ax
je 0x140069943
add rsi, 2
mov ax, word [rsi]
cmp ax, r13w
jne 0x140069915
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 0x1400699b0
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.14005f640
sub ebp, 1
js 0x140069b3b
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 0x14006998d
jmp 0x140069b94
xor ecx, ecx
cmp byte [rsp + 0x50], cl
jne 0x1400699f2
cmp word [r12], 0x26
je 0x1400699d0
lea edx, [rcx + 0x5e]
cmp byte [rsp + 0x40], cl
je 0x1400699f7
cmp dx, word [r12]
je 0x1400699f7
add rsi, 2
cmp word [r12], 0x26
mov r14, r12
jne 0x140069a8c
add r12, 2
mov r15d, 1
jmp 0x140069a8c
mov edx, 0x5e
add rsi, 2
cmp dx, word [r12]
jne 0x140069a09
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 0x140069a5d
cmp word [rdi], cx
jne 0x140069a5d
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x70], rdi
call fcn.140057254
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 0x140069b23
cmp r13b, cl
jne 0x140069b56
mov r13b, 1
cmp byte [rsp + 0x50], cl
jne 0x140069b56
mov word [rax], cx
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
mov rdx, r14
call fcn.14001b2ac
mov rcx, qword [rsp + 0x1a0]
mov edx, 0x25
mov word [rcx], dx
xor ecx, ecx
cmp rax, rcx
jne 0x140069ada
cmp r15d, ecx
jne 0x140069b56
cmp r13b, cl
jne 0x140069b56
mov rax, qword [rsp + 0x1a0]
mov r13b, 1
jmp 0x140069a0c
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.14005f640
sub ebp, 1
js 0x140069b3b
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 0x140069b02
jmp 0x140069b94
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
mov r12, rdi
call fcn.14005f640
sub ebp, 1
jns 0x140069b70
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, 0x25
mov r15b, byte [rsp + 0x40]
jmp 0x140069617
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, edx
jmp 0x140069b4c
mov bpl, byte [rsp + 0x1c0]
jmp 0x140069b46
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 0x140069b75
mov r15b, byte [rsp + 0x40]
xor r13d, r13d
mov bpl, byte [rsp + 0x1c0]
mov r12d, 0x25
jmp 0x14006961c
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.140057254
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x60]
sar rdi, 1
call fcn.14004f564
lea rbx, [0x14010ce50]
cmp rbx, r13
je 0x140069bfd
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