Function at 0x140030800
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x308
movaps xmmword [rsp + 0x2f0], xmm7
movaps xmmword [rsp + 0x2e0], xmm6
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
movabs r13, 0x7fffffffffffffef
mov ecx, 0x210
call fcn.14009c328
mov rsi, rax
mov qword [rsp + 0xd0], rax
lea rax, [r13 + 0x119]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd8], 0x104
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14009fa40
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140030f59
mov edx, eax
lea rsi, [rsp + 0xd0]
mov rcx, rsi
xor r8d, r8d
call fcn.14006d420
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x30], xmm0
mov ecx, 0xa0
call fcn.14009c328
mov r15, rax
mov rcx, rax
call fcn.1400300c0
mov qword [rsp + 0x48], r15
movzx ecx, byte [rsp + 0x47]
mov rax, rcx
test cl, cl
jns 0x1400308e9
mov rax, qword [rsp + 0x38]
mov r12, qword [0x140146c10]
lea rdx, [r12 + 0xc]
cmp rax, rdx
jae 0x14003092c
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
mov rdx, qword [0x1401472b8]
cmp byte [rsp + 0xe7], 0
jns 0x14003098f
mov rcx, qword [rsp + 0xd0]
jmp 0x140030997
lea rbp, [rsp + 0x30]
mov rdx, rbp
test cl, cl
jns 0x14003093d
mov rdx, qword [rsp + 0x30]
lea rbx, [rdx + rax*2]
add rbx, 0xffffffffffffffe8
lea rsi, str.Application
mov r8d, 0xc
mov rcx, rbx
mov rdx, rsi
call fcn.1400b1184
test eax, eax
je 0x140030e03
mov cl, byte [rsp + 0x47]
test cl, cl
mov rdx, qword [rsp + 0x30]
mov rdi, rbp
cmovs rdi, rdx
lea rax, [rbx - 2]
cmp rbx, rdi
mov rbx, rax
jne 0x14003094c
add rax, 2
mov rbx, rax
jmp 0x140030e10
lea rcx, [rsp + 0xd0]
call fcn.1400b0fd4
test eax, eax
jne 0x140030f77
xor ecx, ecx
imul rax, rcx, 0xb0
lea r14, [0x1401472a0]
add r14, rax
cmp byte [rsp + 0xe7], 0
js 0x140030f99
cmp byte [r14 + 0x9c], 0
je 0x140030b33
lea rsi, [rsp + 0xd0]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14009fa40
mov word [rsi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030a55
mov edi, eax
test rdi, rdi
je 0x140030a55
mov rsi, rdi
dec rdi
cmp word [rsp + rsi*2 + 0xce], 0x5c
je 0x140030a13
cmp byte [rsp + 0x47], 0
jns 0x140030a37
mov rcx, qword [rsp + 0x30]
jmp 0x140030a3c
lea rcx, [rsp + 0x30]
lea r8, [rdi + 1]
lea rdx, [rsp + 0xd0]
call fcn.1400b1184
test eax, eax
je 0x14003100e
lea rdx, [rsp + 0xd0]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030ac4
mov edi, eax
test rdi, rdi
je 0x140030ac4
mov rsi, rdi
dec rdi
cmp word [rsp + rsi*2 + 0xce], 0x5c
je 0x140030a82
cmp byte [rsp + 0x47], 0
jns 0x140030aa6
mov rcx, qword [rsp + 0x30]
jmp 0x140030aab
lea rcx, [rsp + 0x30]
lea r8, [rdi + 1]
lea rdx, [rsp + 0xd0]
call fcn.1400b1184
test eax, eax
je 0x140031040
lea rdx, [rsp + 0xd0]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030b33
mov edi, eax
test rdi, rdi
je 0x140030b33
mov rsi, rdi
dec rdi
cmp word [rsp + rsi*2 + 0xce], 0x5c
je 0x140030af1
cmp byte [rsp + 0x47], 0
jns 0x140030b15
mov rcx, qword [rsp + 0x30]
jmp 0x140030b1a
lea rcx, [rsp + 0x30]
lea r8, [rdi + 1]
lea rdx, [rsp + 0xd0]
call fcn.1400b1184
test eax, eax
je 0x14003106b
xor r12d, r12d
mov qword [r15 + 0x68], r14
mov byte [r15 + 0x98], r12b
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0xb0]
mov qword [rsi + 0x10], rax
movaps xmm6, xmmword [0x1401399e0]
movaps xmmword [rsi], xmm6
mov rdx, qword [r14 + 0x28]
mov rcx, rsi
call fcn.140036d20
xor ebp, ebp
mov qword [rsp + 0xa0], rbp
xorps xmm7, xmm7
movaps xmmword [rsp + 0x90], xmm7
cmp byte [rsi + 0x17], 0
jns 0x140030b90
mov rsi, qword [rsp + 0xb0]
movzx eax, r12b
mov ecx, 2
sub ecx, eax
lea rbx, [rsp + 0x90]
mov qword [rsp + 0x20], rbx
lea r9, str.channel
mov edx, 0x200
mov r8, rsi
call fcn.1400371e0
cmp byte [rbx + 0x17], 0
jns 0x140030bca
mov rbx, qword [rsp + 0x90]
lea rsi, [rsp + 0x70]
mov qword [rsi + 0x10], rbp
movaps xmmword [rsi], xmm7
test al, al
cmove rbx, rbp
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rbp
movaps xmmword [rdi], xmm7
lea rbp, [rsp + 0xd0]
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbp
mov rdx, r14
mov r8d, r12d
mov r9, rbx
call fcn.140030170
lea rbx, [r15 + 0x10]
cmp byte [r15 + 0x27], 0
js 0x140030d88
cmp byte [rsp + 0xe7], 0
js 0x140030e2f
mov rax, qword [rsp + 0xe0]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rbx], xmm0
movzx eax, byte [r15 + 0x27]
test al, al
js 0x140030fab
mov qword [r15 + 0x70], rbx
mov qword [r15 + 0x78], rax
mov eax, dword [rsp + 0xe8]
mov dword [r15 + 0x80], eax
lea rbx, [r15 + 0x28]
cmp byte [r15 + 0x3f], 0
js 0x140030db6
cmp byte [rsp + 0x87], 0
js 0x140030e4c
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
cmp byte [r15 + 0x3f], 0
js 0x140030fbc
mov qword [r15 + 0x88], rbx
mov rsi, r15
add rsi, 0x40
cmp byte [r15 + 0x57], 0
js 0x140030dde
cmp byte [rsp + 0x67], 0
js 0x140030e63
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
cmp byte [r15 + 0x57], 0
js 0x140030fc4
mov qword [r15 + 0x90], rsi
cmp byte [rsp + 0xe7], 0
js 0x140030fcc
cmp byte [rsp + 0x67], 0
js 0x140030fde
cmp byte [rsp + 0x87], 0
js 0x140030fed
cmp byte [rsp + 0xa7], 0
js 0x140030ffc
cmp byte [rsp + 0xc7], 0
jns 0x140030d39
mov rcx, qword [rsp + 0xb0]
call fcn.14009c364
lea rcx, [rsp + 0x48]
call fcn.140030080
cmp byte [rsp + 0x47], 0
jns 0x140030d54
mov rcx, qword [rsp + 0x30]
call fcn.14009c364
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.14009d180
movaps xmm6, xmmword [rsp + 0x2e0]
movaps xmm7, xmmword [rsp + 0x2f0]
add rsp, 0x308
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx r8d, byte [rsp + 0xe7]
test r8b, r8b
cmovs r8, qword [rsp + 0xd8]
cmovs rbp, qword [rsp + 0xd0]
mov rcx, rbx
mov rdx, rbp
call fcn.14006cd60
jmp 0x140030c47
movzx r8d, byte [rsp + 0x87]
test r8b, r8b
cmovs r8, qword [rsp + 0x78]
cmovs rsi, qword [rsp + 0x70]
mov rcx, rbx
mov rdx, rsi
call fcn.14006cd60
jmp 0x140030c9b
movzx r8d, byte [rsp + 0x67]
test r8b, r8b
cmovs r8, qword [rsp + 0x58]
cmovs rdi, qword [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
call fcn.14006cd60
jmp 0x140030cdb
mov cl, byte [rsp + 0x47]
mov rdx, qword [rsp + 0x30]
add rbx, 2
test cl, cl
lea rax, [rsp + 0x30]
cmovs rax, rdx
cmp rbx, rax
je 0x1400308fa
test cl, cl
jns 0x140030e7a
mov rcx, qword [rsp + 0x38]
jmp 0x140030e7d
mov rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xd8]
mov rcx, rbx
call fcn.14006ce90
jmp 0x140030c47
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rcx, rbx
call fcn.14006ce90
jmp 0x140030c9b
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rcx, rsi
call fcn.14006ce90
jmp 0x140030cdb
movzx ecx, cl
lea rcx, [rax + rcx*2]
sub rcx, rbx
cmp rcx, 0x16
je 0x140030e95
cmp word [rbx + 0x16], 0x5c
jne 0x1400308fa
lea rcx, [rax + 2]
mov rdx, rbx
cmp rcx, rdx
je 0x140030eb1
lea rsi, [rdx - 2]
cmp word [rdx - 4], 0x5c
mov rdx, rsi
jne 0x140030e9c
jmp 0x140030eb4
mov rsi, rax
lea rdx, [0x140146c00]
mov rcx, rsi
mov r8, r12
call fcn.1400b1184
test eax, eax
jne 0x1400308fa
add rsi, 2
sub rbx, rsi
sar rbx, 1
sub rbx, r12
cmp rbx, r13
ja 0x140030f4c
cmp rbx, 0xb
jae 0x140030ef9
lea r14, [rsp + 0xd0]
mov byte [r14 + 0x17], bl
test rbx, rbx
jne 0x140030f2c
jmp 0x140030f40
lea rdi, [rbx + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.14009c328
mov r14, rax
mov qword [rsp + 0xd0], rax
add r13, 0x11
or r13, rdi
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xd8], rbx
lea rdx, [rsi + r12*2]
add rdx, 0xfffffffffffffffe
lea r8, [rbx + rbx]
mov rcx, r14
call fcn.14009f630
mov word [r14 + rbx*2], 0
jmp 0x140030911
lea rcx, [rsp + 0xd0]
call fcn.1400e86c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rcx, rsi
call fcn.14009c364
jmp 0x1400308be
mov rdx, qword [str._Beta]
cmp byte [rsp + 0xe7], 0
jns 0x140031096
mov rcx, qword [rsp + 0xd0]
jmp 0x14003109e
mov rcx, qword [rsp + 0xd0]
call fcn.14009c364
jmp 0x1400309c5
mov rcx, qword [r15 + 0x10]
mov rax, qword [r15 + 0x18]
mov qword [r15 + 0x70], rcx
jmp 0x140030c58
mov rbx, qword [rbx]
jmp 0x140030ca6
mov rsi, qword [rsi]
jmp 0x140030ce6
mov rcx, qword [rsp + 0xd0]
call fcn.14009c364
jmp 0x140030cfb
mov rcx, qword [rsp + 0x50]
call fcn.14009c364
jmp 0x140030d06
mov rcx, qword [rsp + 0x70]
call fcn.14009c364
jmp 0x140030d14
mov rcx, qword [rsp + 0x90]
call fcn.14009c364
jmp 0x140030d22
movzx eax, byte [rsp + 0x47]
mov rcx, rax
test al, al
jns 0x14003101f
mov rcx, qword [rsp + 0x38]
dec rcx
mov r12b, 1
cmp rcx, rdi
je 0x140030b36
test al, al
jns 0x1400310cb
mov rax, qword [rsp + 0x30]
jmp 0x1400310d0
movzx eax, byte [rsp + 0x47]
mov rcx, rax
test al, al
jns 0x140031051
mov rcx, qword [rsp + 0x38]
dec rcx
mov r12b, 1
cmp rcx, rdi
je 0x140030b36
test al, al
jns 0x1400310e0
mov rax, qword [rsp + 0x30]
jmp 0x1400310e5
movzx eax, byte [rsp + 0x47]
mov rcx, rax
test al, al
jns 0x14003107c
mov rcx, qword [rsp + 0x38]
dec rcx
mov r12b, 1
cmp rcx, rdi
je 0x140030b36
test al, al
jns 0x1400310f5
mov rax, qword [rsp + 0x30]
jmp 0x1400310fa
lea rcx, [rsp + 0xd0]
call fcn.1400b0fd4
mov ecx, 1
test eax, eax
je 0x1400309a6
mov rdx, qword [str._Dev]
cmp byte [rsp + 0xe7], 0
jns 0x14003110a
mov rcx, qword [rsp + 0xd0]
jmp 0x140031112
lea rax, [rsp + 0x30]
cmp word [rax + rsi*2], 0x5c
jne 0x140030a55
jmp 0x140030b36
lea rax, [rsp + 0x30]
cmp word [rax + rsi*2], 0x5c
jne 0x140030ac4
jmp 0x140030b36
lea rax, [rsp + 0x30]
cmp word [rax + rsi*2], 0x5c
jne 0x140030b33
jmp 0x140030b36
lea rcx, [rsp + 0xd0]
call fcn.1400b0fd4
mov ecx, 2
test eax, eax
je 0x1400309a6
mov rdx, qword [str._SxS]
cmp byte [rsp + 0xe7], 0
jns 0x14003113f
mov rcx, qword [rsp + 0xd0]
jmp 0x140031147
lea rcx, [rsp + 0xd0]
call fcn.1400b0fd4
mov ecx, 3
test eax, eax
je 0x1400309a6
lea r14, [0x1401472a0]
jmp 0x1400309b7