Function at 0x140079e84
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, 0x260
mov rbx, rcx
lea rcx, [0x14013e190]
mov rbp, r8
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, byte [rbx + 0xd]
xor r15d, r15d
cmp dword [rsp + 0x2b8], r15d
setl al
and sil, 0x11
mov byte [rsp + 0x49], sil
mov sil, byte [rsp + 0x2c0]
mov byte [rsp + 0x48], al
cmp al, r15b
jne 0x140079ef1
test sil, 0x40
je 0x140079ef6
mov byte [rsp + 0x49], r15b
mov eax, 0x50
lea rcx, [rsp + 0x70]
and sil, 1
mov rdx, rax
mov byte [rsp + 0x2c0], sil
mov qword [rsp + 0xa0], rax
call fcn.140063314
lea rax, [rsp + 0xb8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x2b8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
lea rcx, [rsp + 0xc0]
or r14d, 0xffffffff
mov rdx, rbp
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0x98], r15
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0xb8], r15
call fcn.14006d464
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x2a0]
xor r9d, r9d
mov r15d, 0x26
lea r12d, [r15 + 0x58]
cmp rdx, qword [rsp + 0xa8]
jae 0x14007a9b5
cmp word [r13], r9w
je 0x14007a9b5
lea rcx, [rsp + 0xc0]
call fcn.14006d5a8
mov r8d, 0x25
xor r9d, r9d
cmp word [r13], r8w
je 0x14007a012
mov rdx, qword [rsp + 0x40]
mov ecx, 0x3dd
movzx eax, word [r13]
cmp ax, r9w
je 0x140079fa5
cmp r8w, ax
je 0x140079fa5
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add r13, 2
add rdx, 2
sub ecx, 1
mov qword [rsp + 0x40], rdx
jns 0x140079fe5
jmp 0x140079fa5
mov rbp, r13
cmp sil, r9b
je 0x14007a1c1
cmp word [r13 + 2], r8w
jne 0x14007a045
mov rax, qword [rsp + 0x40]
mov word [rax], r8w
mov rdx, qword [rsp + 0x40]
add rdx, 2
add r13, 4
mov qword [rsp + 0x40], rdx
jmp 0x140079fa5
cmp word [r13 + 2], 0x23
jne 0x14007a09c
mov rcx, qword [rdi + 0x68]
add r13, 4
cmp rcx, r9
je 0x14007a975
movsxd rax, dword [rdi + 0x60]
mov rcx, qword [rcx + rax*8 + 0x10]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14007a975
mov rdx, qword [rsp + 0x40]
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rcx, 2
add rdx, 2
mov qword [rsp + 0x40], rdx
mov ax, word [rcx]
cmp ax, r9w
jne 0x14007a079
jmp 0x140079fa5
cmp word [r13 + 2], 0x2a
jne 0x14007a0bb
mov rbp, qword [rdi + 0x68]
add r13, 4
cmp rbp, r9
je 0x14007a975
mov r14d, dword [rdi + 0x60]
jmp 0x14007a0db
cmp word [r13 + 2], 0x40
jne 0x14007a0f9
mov rbp, qword [rdi + 0x68]
add r13, 4
cmp rbp, r9
je 0x14007a975
mov r14d, dword [rdi + 0x60]
inc r14d
movsxd rax, r14d
mov dword [rsp + 0x58], r14d
mov rbp, qword [rbp + rax*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
jmp 0x14007a28c
movzx eax, word [r13 + 2]
mov r10d, 9
sub ax, 0x30
cmp ax, r10w
jbe 0x14007a12c
cmp word [r13 + 2], r12w
jb 0x14007a1c1
movzx eax, word [r13 + 4]
sub ax, 0x30
cmp ax, r10w
ja 0x14007a1c1
mov eax, 0x7e
mov r12d, r9d
cmp word [r13 + 2], ax
jb 0x14007a142
mov r12d, r8d
add r13, 2
mov rbp, r9
add r13, 2
movzx eax, word [r13]
sub ax, 0x30
cmp ax, r10w
ja 0x14007a169
movzx eax, word [r13]
lea rcx, [rbp + rbp*4]
lea rbp, [rax + rcx*2 - 0x30]
jmp 0x14007a145
movsxd rax, dword [rdi + 0x60]
cmp rbp, rax
jae 0x14007a975
mov rax, qword [rdi + 0x68]
cmp rax, r9
je 0x14007a975
mov rbp, qword [rax + rbp*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r15d, r15d
movsxd rsi, eax
cmp r12d, r15d
je 0x14007a281
cmp word [rbp], 0x22
jne 0x14007a281
cmp word [rbp + rsi*2 - 2], 0x22
jne 0x14007a1b5
dec rsi
dec rsi
add rbp, 2
jmp 0x14007a281
add r13, 2
mov r12, r13
mov rsi, r13
cmp r15w, word [r13]
jne 0x14007a1dc
add rsi, 2
cmp r15w, word [rsi]
je 0x14007a1d2
lea rdx, str.RANDOM_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r15d, r15d
cmp eax, r15d
jne 0x14007a211
call fcn.14005dcb4
movabs rcx, 0x7fffffffffffffff
and rax, rcx
xor r9d, r9d
jmp 0x14007a23a
lea rdx, str.__THIS_
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor r9d, r9d
cmp eax, r9d
jne 0x14007a2f3
lea rax, [rdi + 0x75bd036]
lea rcx, [rsp + 0xf0]
mov rdx, rax
lea r13, [rsi + 0xe]
mov word [rsp + 0xf0], r9w
call fcn.1400e62ac
lea rcx, [rsp + 0xf0]
mov word [rsp + 0x192], r15w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rbp, [rsp + 0xf0]
movsxd rsi, eax
cmp rsi, 1
cmovl rsi, r15
mov r12d, 0x7e
lea r15d, [r12 - 0x58]
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d4fc
xor r9d, r9d
cmp r14d, r9d
jl 0x14007a2b8
mov rax, qword [rdi + 0x68]
movsxd rcx, r14d
or r14d, 0xffffffff
mov rbp, qword [rax + rcx*8]
mov dword [rsp + 0x58], r14d
sub rsi, 1
js 0x14007a96d
mov rdx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rdx, 2
sub rsi, 1
mov qword [rsp + 0x40], rdx
jns 0x14007a2c7
mov sil, byte [rsp + 0x2c0]
jmp 0x140079fa5
movzx eax, word [r13]
mov r8d, 0x25
cmp ax, r9w
je 0x14007a33d
lea ebx, [r8 - 0x1c]
cmp ax, r8w
je 0x14007a338
cmp ax, 0x3d
je 0x14007a338
cmp bx, ax
ja 0x14007a31f
cmp ax, 0xd
jbe 0x14007a338
mov ecx, 0x20
cmp cx, ax
je 0x14007a338
add r13, 2
mov ax, word [r13]
cmp ax, r9w
jne 0x14007a308
mov rbx, qword [rsp + 0x70]
movsx eax, byte [rsp + 0x49]
mov rsi, r13
mov r14, r13
sub rsi, rbp
mov dword [rsp + 0x2a0], eax
sar rsi, 1
mov qword [rsp + 0x78], rsi
cmp word [r13], r8w
je 0x14007a3a4
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d4fc
sub rsi, 1
js 0x14007a96a
mov rdx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rdx, 2
sub rsi, 1
mov qword [rsp + 0x40], rdx
jns 0x14007a380
jmp 0x14007a9a0
cmp byte [rsp + 0x48], r9b
jne 0x14007a3f4
mov ecx, 0x26
cmp word [r12], cx
je 0x14007a3c6
cmp al, r9b
je 0x14007a3f4
lea eax, [rcx + 0x38]
cmp ax, word [r12]
je 0x14007a3f4
mov rdx, r12
add r13, 2
mov qword [rsp + 0xb0], rdx
cmp word [r12], cx
jne 0x14007a56d
add r12, 2
mov dword [rsp + 0x2a0], 1
jmp 0x14007a56d
mov ecx, 0x5e
add r13, 2
cmp cx, word [r12]
jne 0x14007a40b
add r12, 2
mov r15b, 8
mov qword [rsp + 0xb0], r12
mov word [rbx], r9w
mov rax, r12
movabs rcx, 0x7fffffffffffffff
mov rbp, r9
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x90], rcx
cmp r12, r14
jae 0x14007a4ce
mov esi, 0x3a
cmp word [rax], r9w
je 0x14007a4ce
cmp si, word [rax]
jne 0x14007a460
mov ecx, 0x7e
cmp cx, word [rax + 2]
je 0x14007a470
add rax, 2
mov qword [rsp + 0x60], rax
cmp rax, r14
jae 0x14007a4ce
jmp 0x14007a44a
mov word [rax], r9w
add qword [rsp + 0x60], 4
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov rbp, rax
call fcn.1400c14c4
mov r11, qword [rsp + 0x60]
mov eax, 0x2c
cmp ax, word [r11]
je 0x14007a4b0
mov eax, 0x3b
cmp ax, word [r11]
je 0x14007a4b0
cmp si, word [r11]
jne 0x14007a4cb
add r11, 2
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r11
call fcn.1400c14c4
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, rbx
mov rcx, r12
mov word [r14], r9w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r9d, r9d
mov esi, eax
cmp rsi, r9
mov qword [rsp + 0x78], rsi
jle 0x14007a531
cmp word [rbx], r9w
jne 0x14007a531
lea ebx, [rsi + 0x64]
lea rcx, [rsp + 0x70]
movsxd rdx, ebx
mov qword [rsp + 0xa0], rbx
call fcn.1400633a0
mov r8d, ebx
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r9d, r9d
mov esi, eax
mov qword [rsp + 0x78], rsi
mov r8d, 0x25
mov word [r14], r8w
cmp rbp, r9
jne 0x14007a8d5
cmp word [rbx], r9w
jne 0x14007a8d0
cmp r15b, r9b
jne 0x14007a96d
mov r15b, 1
cmp byte [rsp + 0x48], r9b
jne 0x14007a96d
mov rdx, qword [rsp + 0xb0]
movabs rcx, 0x7fffffffffffffff
mov rax, rdx
mov qword [rsp + 0x50], rdx
mov rsi, r9
mov rbp, r9
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x88], rcx
cmp rdx, r14
jae 0x14007a78a
mov r10d, 0x3a
lea r11d, [r10 + 5]
movzx ecx, word [rax]
cmp cx, r9w
je 0x14007a78a
cmp r10w, cx
jne 0x14007a5cb
mov r11d, 0x7e
cmp r11w, word [rax + 2]
je 0x14007a5e9
mov r11d, 0x3f
add rax, 2
mov qword [rsp + 0x50], rax
cmp r11w, cx
je 0x14007a71d
cmp rax, r14
jae 0x14007a78a
jmp 0x14007a5a5
mov word [rax], r9w
mov qword [rsp + 0x20], r9
xor r8d, r8d
or r9d, 0xffffffff
mov rcx, rdi
call fcn.1400189c4
mov rcx, qword [rsp + 0x50]
mov ebp, 0x3a
mov word [rcx], bp
add qword [rsp + 0x50], 4
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rsi, rax
call fcn.1400c14c4
mov r11, qword [rsp + 0x50]
lea eax, [rbp - 0xe]
cmp ax, word [r11]
je 0x14007a643
lea eax, [rbp + 1]
cmp ax, word [r11]
je 0x14007a643
cmp bp, word [r11]
jne 0x14007a663
add r11, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r11
call fcn.1400c14c4
mov r11, qword [rsp + 0x50]
movzx eax, word [r11]
xor r9d, r9d
cmp ax, r9w
je 0x14007a693
lea r8d, [r9 + 0x25]
cmp r8w, ax
je 0x14007a68f
add r11, 2
mov qword [rsp + 0x50], r11
mov ax, word [r11]
cmp ax, r9w
jne 0x14007a674
jmp 0x14007a693
lea r13, [r11 + 2]
cmp rsi, r9
je 0x14007a7c7
mov rbp, qword [rsi + 8]
mov rax, qword [rsi + 0x18]
mov rsi, qword [rsp + 0x88]
movabs rcx, 0x3fffffffffffffff
mov rdx, rbp
and rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rdx
cmp rcx, rax
lea r8, [rbp + rax*2]
cmovg rcx, rax
cmp rcx, r9
mov qword [rsp + 0x68], rcx
jl 0x14007a801
cmp rsi, r9
jl 0x14007a801
cmp rcx, r9
jle 0x14007a876
lea rax, [rbp + rcx*2]
cmp rbp, rax
jae 0x14007a84a
cmp word [rdx], r9w
je 0x14007a7e6
add rdx, 2
mov qword [rsp + 0x50], rdx
cmp rdx, rax
jb 0x14007a700
jmp 0x14007a84a
lea rsi, [rax - 2]
mov rbp, rsi
mov word [rsi], r9w
mov rax, qword [rsp + 0x50]
jmp 0x14007a73e
add rax, 2
mov qword [rsp + 0x50], rax
cmp r10w, cx
je 0x14007a749
movzx ecx, word [rax]
cmp cx, r9w
jne 0x14007a72f
jmp 0x14007a74c
mov rbp, rax
cmp word [r14], r9w
je 0x14007a78a
cmp r8w, word [r14 + 2]
jne 0x14007a78a
lea rax, [r14 + 4]
mov ecx, 0x64
cmp cx, word [rax]
jne 0x14007a78a
jmp 0x14007a773
cmp r8w, cx
je 0x14007a783
add rax, 2
mov qword [rsp + 0x50], rax
movzx ecx, word [rax]
cmp cx, r9w
jne 0x14007a769
jmp 0x14007a78a
mov r14, rax
lea r13, [rax + 2]
mov word [r14], r9w
mov qword [rsp + 0x20], r9
xor r8d, r8d
or r9d, 0xffffffff
mov rcx, rdi
call fcn.1400189c4
xor r9d, r9d
mov ecx, 0x25
mov word [r14], cx
cmp rsi, r9
je 0x14007a7be
lea ecx, [r9 + 0x3f]
mov word [rsi], cx
add rsi, 2
cmp rax, r9
jne 0x14007a851
cmp dword [rsp + 0x2a0], r9d
jne 0x14007a96d
cmp r15b, r9b
jne 0x14007a96d
mov r15b, 1
jmp 0x14007a413
mov rcx, rdx
mov rsi, r9
mov qword [rsp + 0x88], r9
sub rcx, rbp
sar rcx, 1
mov qword [rsp + 0x68], rcx
jmp 0x14007a84a
cmp word [rbp], r9w
je 0x14007a81c
cmp rdx, r8
jae 0x14007a81c
add rdx, 2
mov qword [rsp + 0x50], rdx
cmp word [rdx], r9w
jne 0x14007a808
sub rdx, rbp
sar rdx, 1
cmp rcx, r9
jge 0x14007a833
add rcx, rdx
cmovs rcx, r9
mov qword [rsp + 0x68], rcx
cmp rsi, r9
jge 0x14007a84a
sub rdx, rcx
add rsi, rdx
cmovs rsi, r9
mov qword [rsp + 0x88], rsi
lea rbp, [rbp + rcx*2]
jmp 0x14007a876
lea r9, [rsp + 0x1a0]
lea rdx, [rsp + 0x78]
mov r8, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.14006d64c
mov rsi, qword [rsp + 0x78]
mov rbp, rax
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d4fc
xor r9d, r9d
sub rsi, 1
js 0x14007a96d
mov rdx, qword [rsp + 0x40]
movzx ecx, word [rbp]
add rbp, 2
mov word [rdx], cx
mov rdx, qword [rsp + 0x40]
add rdx, 2
mov qword [rsp + 0x40], rdx
cmp cx, r9w
je 0x14007a8c2
sub rsi, 1
jns 0x14007a898
jmp 0x14007a9a3
sub rdx, 2
mov qword [rsp + 0x40], rdx
jmp 0x14007a9a3
mov rbp, rbx
jmp 0x14007a954
mov eax, 0x3a
mov word [rbp], ax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x90]
cmp rcx, rsi
cmovg rcx, rsi
cmp rdx, rsi
cmovg rdx, rsi
cmp rcx, r9
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x90], rdx
jge 0x14007a929
mov rax, rsi
neg rax
cmp rcx, rax
cmovl rcx, rax
add rcx, rsi
mov qword [rsp + 0x80], rcx
mov rax, rsi
sub rax, rcx
cmp rdx, r9
jge 0x14007a942
lea rsi, [rax + rdx]
cmp rsi, r9
jge 0x14007a950
mov rsi, r9
jmp 0x14007a950
cmp rsi, rax
cmovg rsi, rax
cmp rsi, rdx
cmovg rsi, rdx
lea rbp, [rbx + rcx*2]
lea edx, [rsi + 2]
lea rcx, [rsp + 0xc0]
call fcn.14006d4fc
sub rsi, 1
jns 0x14007a97c
xor r9d, r9d
mov sil, byte [rsp + 0x2c0]
mov rdx, qword [rsp + 0x40]
jmp 0x14007a9ab
mov rdx, qword [rsp + 0x40]
movzx eax, word [rbp]
add rbp, 2
mov word [rdx], ax
mov rdx, qword [rsp + 0x40]
add rdx, 2
sub rsi, 1
mov qword [rsp + 0x40], rdx
jns 0x14007a981
xor r9d, r9d
mov sil, byte [rsp + 0x2c0]
mov r14d, dword [rsp + 0x58]
jmp 0x140079f9b
mov rcx, qword [rsp + 0x2b0]
mov word [rdx], r9w
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rsp + 0x98]
sar rdx, 1
add rdx, 2
call fcn.1400633a0
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
sub rbx, qword [rsp + 0x98]
sar rbx, 1
call fcn.14005aef8
lea rdi, [0x14013e190]
xor r15d, r15d
cmp rdi, r15
je 0x14007aa0c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret