Function at 0x14006d030
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, [0x140118f08]
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 0x14006d09c
test sil, 0x40
je 0x14006d0a1
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.14005a1c4
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.140062b30
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 0x14006daf8
cmp word [r15], r8w
je 0x14006daf8
lea rcx, [rsp + 0xa8]
call fcn.140062c74
mov r9d, 0x25
xor r8d, r8d
cmp word [r15], r9w
je 0x14006d1a9
mov rcx, qword [rsp + 0x40]
mov edx, 0x3dd
movzx eax, word [r15]
cmp ax, r8w
je 0x14006d142
cmp r9w, ax
je 0x14006d142
mov word [rcx], ax
mov rcx, qword [rsp + 0x40]
add r15, 2
add rcx, 2
sub edx, 1
mov qword [rsp + 0x40], rcx
jns 0x14006d17d
jmp 0x14006d142
mov rbp, r15
cmp sil, r8b
je 0x14006d3d2
cmp word [r15 + 2], r9w
jne 0x14006d1dc
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 0x14006d142
cmp word [r15 + 2], 0x23
jne 0x14006d23b
mov rdx, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rdx, r8
je 0x14006daa9
movsxd rax, dword [rbx + 0x60]
mov rdx, qword [rdx + rax*8 + 0x10]
movzx eax, word [rdx]
cmp ax, r8w
je 0x14006daa9
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 0x14006d218
jmp 0x14006d142
cmp word [r15 + 2], 0x2a
jne 0x14006d262
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14006daa9
mov r14d, dword [rbx + 0x60]
jmp 0x14006d28a
cmp word [r15 + 2], 0x40
jne 0x14006d2a7
mov rbp, qword [rbx + 0x68]
add r15, 4
mov qword [rsp + 0x2a8], r15
cmp rbp, r8
je 0x14006daa9
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 0x14006d36d
movzx eax, word [r15 + 2]
sub ax, 0x30
cmp ax, r13w
jbe 0x14006d2d9
mov eax, 0x7e
cmp word [r15 + 2], ax
jb 0x14006d3d2
movzx eax, word [r15 + 4]
sub ax, 0x30
cmp ax, r13w
ja 0x14006d3d2
mov eax, 0x7e
mov r12d, r8d
cmp word [r15 + 2], ax
jb 0x14006d2ef
mov r12d, r9d
add r15, 2
mov rbp, r8
add r15, 2
movzx eax, word [r15]
sub ax, 0x30
cmp ax, r13w
ja 0x14006d314
movzx eax, word [r15]
lea rcx, [rbp + rbp*4]
lea rbp, [rax + rcx*2 - 0x30]
jmp 0x14006d2f2
movsxd rax, dword [rbx + 0x60]
mov qword [rsp + 0x2a8], r15
cmp rbp, rax
jae 0x14006daa9
mov rax, qword [rbx + 0x68]
cmp rax, r8
je 0x14006daa9
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 0x14006d367
cmp word [rbp], 0x22
jne 0x14006d367
cmp word [rbp + rsi*2 - 2], 0x22
mov rax, rsi
jne 0x14006d361
dec esi
dec esi
add rbp, 2
mov r12d, 0x26
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.140062bc8
xor r8d, r8d
cmp r14d, r8d
jl 0x14006d399
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 0x14006daa1
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 0x14006d3a7
mov sil, byte [rsp + 0x2c0]
jmp 0x14006d142
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r13, r15
mov rsi, r15
cmp r12w, word [r15]
jne 0x14006d3f4
add rsi, 2
cmp r12w, word [rsi]
je 0x14006d3ea
lea rdx, [0x140102fc8]
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
xor ecx, ecx
cmp eax, ecx
jne 0x14006d427
call fcn.140054c4c
movabs rcx, 0x7fffffffffffffff
and rax, rcx
xor r8d, r8d
jmp 0x14006d44c
lea rdx, [0x140102fb8]
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
xor r8d, r8d
cmp eax, r8d
jne 0x14006d4a4
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.1400c90e0
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 0x14006d36d
movzx eax, word [r15]
mov r9d, 0x25
cmp ax, r8w
je 0x14006d4ef
lea edx, [r9 - 0x1c]
cmp ax, r9w
je 0x14006d4e7
cmp ax, 0x3d
je 0x14006d4e7
cmp dx, ax
ja 0x14006d4cf
cmp ax, 0xd
jbe 0x14006d4e7
mov ecx, 0x20
cmp cx, ax
je 0x14006d4e7
add r15, 2
mov ax, word [r15]
cmp ax, r8w
jne 0x14006d4b8
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 0x14006d551
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
call fcn.140062bc8
sub esi, 1
js 0x14006da9e
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 0x14006d52e
jmp 0x14006dae3
mov bpl, byte [rsp + 0x4a]
cmp bpl, r8b
jne 0x14006d5a5
mov ecx, 0x26
cmp word [r13], cx
je 0x14006d576
cmp al, r8b
je 0x14006d5a5
lea eax, [rcx + 0x38]
cmp ax, word [r13]
je 0x14006d5a5
add r15, 2
mov qword [rsp + 0x2a8], r15
mov r15, r13
cmp word [r13], cx
jne 0x14006d649
mov esi, 1
add r13, 2
mov dword [rsp + 0x2a0], esi
jmp 0x14006d650
add r15, 2
mov ecx, 0x5e
mov qword [rsp + 0x2a8], r15
cmp cx, word [r13]
jne 0x14006d5c4
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 0x14006d61f
cmp word [rdi], r8w
jne 0x14006d61f
lea edi, [rax + 0x64]
lea rcx, [rsp + 0x58]
movsxd rdx, edi
mov qword [rsp + 0x78], rdi
call fcn.14005a250
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 0x14006da86
cmp r14b, r8b
jne 0x14006daa1
mov r14b, 1
cmp bpl, r8b
jne 0x14006daa1
mov esi, dword [rsp + 0x2a0]
mov rax, r15
mov rbp, r8
mov qword [rsp + 0x50], r8
cmp r15, r12
jae 0x14006d6fb
mov edx, 0x3f
movzx ecx, word [rax]
cmp cx, r8w
je 0x14006d6fb
add rax, 2
cmp dx, cx
je 0x14006d686
cmp rax, r12
jb 0x14006d669
jmp 0x14006d6fb
lea rbp, [rax - 2]
mov rcx, rbp
mov qword [rsp + 0x50], rcx
mov word [rbp], r8w
jmp 0x14006d6a7
mov edx, 0x3a
add rax, 2
cmp dx, cx
je 0x14006d6b2
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14006d699
jmp 0x14006d6b7
mov qword [rsp + 0x50], rax
cmp word [r12], r8w
je 0x14006d6fb
cmp r9w, word [r12 + 2]
jne 0x14006d6fb
lea rax, [r12 + 4]
mov ecx, 0x64
cmp cx, word [rax]
jne 0x14006d6fb
jmp 0x14006d6e1
cmp r9w, cx
je 0x14006d6ec
add rax, 2
movzx ecx, word [rax]
cmp cx, r8w
jne 0x14006d6d7
jmp 0x14006d6fb
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.140016e9c
xor r8d, r8d
mov ecx, 0x25
mov word [r12], cx
cmp rbp, r8
je 0x14006d735
lea ecx, [r8 + 0x3f]
mov word [rbp], cx
add rbp, 2
cmp rax, r8
jne 0x14006d759
cmp esi, r8d
jne 0x14006daa1
cmp r14b, r8b
jne 0x14006daa1
mov bpl, byte [rsp + 0x4a]
mov r14b, 1
jmp 0x14006d5c7
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 0x14006da30
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, [0x140102fac]
mov rdx, rbp
mov r8d, 4
mov r12b, 1
call fcn.140053674
xor esi, esi
cmp al, sil
jne 0x14006d8f0
lea rcx, [0x140102fa4]
mov r8d, 5
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d7f3
add rbp, 0xa
mov r12b, 2
jmp 0x14006d8f0
lea rcx, [0x140102f9c]
mov r8d, 4
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d819
add rbp, 8
mov r12b, 4
jmp 0x14006d8f0
lea rcx, [0x140102f94]
mov r8d, 5
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d839
add rbp, 0xa
jmp 0x14006d857
lea rcx, [0x140102f90]
mov r8d, 3
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d85f
add rbp, 6
mov r12b, 8
jmp 0x14006d8f0
lea rcx, [0x140102f88]
mov r8d, 5
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d887
mov r12b, 4
add rbp, 0xa
mov byte [rsp + 0x48], r12b
jmp 0x14006d8d8
lea rcx, [0x140102f80]
mov r8d, 6
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d8af
mov r12b, 8
add rbp, 0xc
mov byte [rsp + 0x4b], r12b
jmp 0x14006d8d8
lea rcx, [0x140102f78]
mov r8d, 7
mov rdx, rbp
call fcn.140053674
cmp al, sil
je 0x14006d8f0
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 0x14006d941
lea ecx, [rbp + 0x7e]
cmp cx, word [rax]
jne 0x14006d920
add rax, 2
mov r13b, r12b
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14005e350
mov r11, qword [rsp + 0x60]
cmp r13b, bpl
je 0x14006d941
movsx rax, r13b
imul r11, rax
movsx r8, r12b
lea rax, [r8 + r11]
cmp rax, r14
jle 0x14006d958
mov r11, r8
sub r11, r14
cmovs r11, rbp
lea rdx, [r11 + r15]
lea rcx, [rsp + 0x80]
call fcn.14001b7a8
mov word [rsp + 0xe0], bp
cmp byte [rsp + 0x2a0], bpl
jne 0x14006d982
cmp byte [rsp + 0x4b], bpl
je 0x14006d98d
movsd xmm2, qword [rsp + 0x80]
jmp 0x14006d9a0
cmp byte [rsp + 0x48], bpl
je 0x14006d9bc
movd xmm2, dword [rsp + 0x80]
cvtps2pd xmm2, xmm2
movq r8, xmm2
lea rdx, [0x140102f70]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.DLL_wsprintfW]
jmp 0x14006da18
lea rcx, [rsp + 0xe0]
cmp sil, 1
jne 0x14006d9d5
movsx r8d, byte [rsp + 0x80]
jmp 0x14006d9f4
cmp sil, 2
jne 0x14006d9e6
movsx r8d, word [rsp + 0x80]
jmp 0x14006d9f4
cmp sil, 4
jne 0x14006da03
mov r8d, dword [rsp + 0x80]
lea rdx, [0x1400f9d2c]
call qword [sym.imp.USER32.DLL_wsprintfW]
jmp 0x14006da18
mov r8, qword [rsp + 0x80]
lea rdx, [0x1400ff428]
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.140062bc8
xor r8d, r8d
sub esi, 1
js 0x14006daa1
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 0x14006da7b
sub esi, 1
jns 0x14006da4d
mov r15, qword [rsp + 0x2a8]
jmp 0x14006dae6
sub rcx, 2
mov qword [rsp + 0x40], rcx
jmp 0x14006da71
lea edx, [rsi + 2]
lea rcx, [rsp + 0xa8]
mov rbp, rdi
call fcn.140062bc8
sub esi, 1
jns 0x14006dab8
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x2a8]
jmp 0x14006daee
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 0x14006dabd
mov r15, qword [rsp + 0x2a8]
xor r8d, r8d
mov sil, byte [rsp + 0x2c0]
mov r14d, dword [rsp + 0x4c]
jmp 0x14006d137
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.14005a250
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
sub rdi, qword [rsp + 0x68]
sar rdi, 1
call fcn.140052160
lea rbx, [0x140118f08]
xor ecx, ecx
cmp rbx, rcx
je 0x14006db48
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