Function at 0x140068750
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, [0x140107de8]
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 0x1400687bd
test bpl, 0x40
je 0x1400687c5
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.140056040
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.14005e100
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x1a0]
mov r12d, 0x25
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x68]
jae 0x140068de7
cmp word [rsi], r13w
je 0x140068de7
lea rcx, [rsp + 0x80]
call fcn.14005e244
cmp word [rsi], r12w
je 0x1400688b1
mov rdx, qword [rsp + 0x48]
mov ecx, 0x3dd
movzx eax, word [rsi]
cmp ax, r13w
je 0x140068854
cmp r12w, ax
je 0x140068854
mov word [rdx], ax
mov rdx, qword [rsp + 0x48]
add rsi, 2
add rdx, 2
sub ecx, 1
mov qword [rsp + 0x48], rdx
jns 0x140068886
jmp 0x140068854
mov r14, rsi
cmp bpl, r13b
je 0x140068a9a
cmp word [rsi + 2], r12w
jne 0x1400688e4
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 0x140068854
cmp word [rsi + 2], 0x23
jne 0x14006893a
mov rcx, qword [rbx + 0x68]
add rsi, 4
cmp rcx, r13
je 0x140068d84
movsxd rax, dword [rbx + 0x60]
mov rcx, qword [rcx + rax*8 + 0x10]
movzx eax, word [rcx]
cmp ax, r13w
je 0x140068d84
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 0x140068917
jmp 0x140068854
cmp word [rsi + 2], 0x2a
jne 0x140068957
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x140068d7e
mov eax, dword [rbx + 0x60]
jmp 0x140068974
cmp word [rsi + 2], 0x40
jne 0x14006898e
mov r12, qword [rbx + 0x68]
add rsi, 4
cmp r12, r13
je 0x140068d7e
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 0x140068a41
movzx eax, word [rsi + 2]
mov r8d, 9
sub ax, 0x30
cmp ax, r8w
jbe 0x1400689bf
cmp word [rsi + 2], 0x7e
jb 0x140068a9a
movzx eax, word [rsi + 4]
sub ax, 0x30
cmp ax, r8w
ja 0x140068a9a
cmp word [rsi + 2], 0x7e
jb 0x1400689cd
mov r13d, r12d
add rsi, 2
add rsi, 2
xor r12d, r12d
movzx eax, word [rsi]
sub ax, 0x30
cmp ax, r8w
ja 0x1400689f3
movzx eax, word [rsi]
lea rcx, [r12 + r12*4]
add rsi, 2
lea r12, [rax + rcx*2 - 0x30]
jmp 0x1400689d4
movsxd rax, dword [rbx + 0x60]
cmp r12, rax
jae 0x140068d7b
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x140068d7b
mov r12, qword [rax + r12*8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, eax
test r13d, r13d
je 0x140068a3e
cmp word [r12], 0x22
jne 0x140068a3e
cmp word [r12 + rbp*2 - 2], 0x22
mov rax, rbp
jne 0x140068a38
dec ebp
dec ebp
add r12, 2
xor r13d, r13d
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.14005e198
movsxd r14, dword [rsp + 0x54]
cmp r14d, r13d
jl 0x140068a68
mov rax, qword [rbx + 0x68]
or dword [rsp + 0x54], 0xffffffff
mov r12, qword [rax + r14*8]
sub ebp, 1
js 0x140068d9e
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 0x140068a76
jmp 0x140068dd4
mov ebp, 8
lea rdx, str._RANDOM_
mov rcx, rsi
mov r8d, ebp
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x140068acb
call fcn.1400512e8
movabs rcx, 0x7fffffffffffffff
and rax, rcx
jmp 0x140068aea
lea rdx, str.___THIS_
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, r13d
jne 0x140068b34
lea rax, [rbx + 0x75bd036]
lea rcx, [rsp + 0xb0]
mov rdx, rax
add rsi, 0x10
mov word [rsp + 0xb0], r13w
call fcn.1400bc100
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 0x140068a41
add rsi, 2
mov r12, rsi
movzx eax, word [rsi]
cmp ax, r13w
je 0x140068b85
mov edi, 0x25
lea r15d, [rdi - 0x1c]
cmp ax, di
je 0x140068b7b
cmp ax, 0x3d
je 0x140068b7b
cmp r15w, ax
ja 0x140068b64
cmp ax, 0xd
jbe 0x140068b7b
mov ecx, 0x20
cmp cx, ax
je 0x140068b7b
add rsi, 2
mov ax, word [rsi]
cmp ax, r13w
jne 0x140068b4d
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 0x140068be8
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
call fcn.14005e198
sub ebp, 1
js 0x140068d73
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 0x140068bc5
jmp 0x140068dcc
xor ecx, ecx
cmp byte [rsp + 0x50], cl
jne 0x140068c2a
cmp word [r12], 0x26
je 0x140068c08
lea edx, [rcx + 0x5e]
cmp byte [rsp + 0x40], cl
je 0x140068c2f
cmp dx, word [r12]
je 0x140068c2f
add rsi, 2
cmp word [r12], 0x26
mov r14, r12
jne 0x140068cc4
add r12, 2
mov r15d, 1
jmp 0x140068cc4
mov edx, 0x5e
add rsi, 2
cmp dx, word [r12]
jne 0x140068c41
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 0x140068c95
cmp word [rdi], cx
jne 0x140068c95
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x70], rdi
call fcn.1400560cc
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 0x140068d5b
cmp r13b, cl
jne 0x140068d8e
mov r13b, 1
cmp byte [rsp + 0x50], cl
jne 0x140068d8e
mov word [rax], cx
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
mov rdx, r14
call fcn.14001aea0
mov rcx, qword [rsp + 0x1a0]
mov edx, 0x25
mov word [rcx], dx
xor ecx, ecx
cmp rax, rcx
jne 0x140068d12
cmp r15d, ecx
jne 0x140068d8e
cmp r13b, cl
jne 0x140068d8e
mov rax, qword [rsp + 0x1a0]
mov r13b, 1
jmp 0x140068c44
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.14005e198
sub ebp, 1
js 0x140068d73
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 0x140068d3a
jmp 0x140068dcc
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
mov r12, rdi
call fcn.14005e198
sub ebp, 1
jns 0x140068da8
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, 0x25
mov r15b, byte [rsp + 0x40]
jmp 0x14006884f
mov bpl, byte [rsp + 0x1c0]
xor r13d, r13d
mov r12d, edx
jmp 0x140068d84
mov bpl, byte [rsp + 0x1c0]
jmp 0x140068d7e
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 0x140068dad
mov r15b, byte [rsp + 0x40]
xor r13d, r13d
mov bpl, byte [rsp + 0x1c0]
mov r12d, 0x25
jmp 0x140068854
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.1400560cc
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x60]
sar rdi, 1
call fcn.14004ea6c
lea rbx, [0x140107de8]
cmp rbx, r13
je 0x140068e35
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