Function at 0x1402cd7c0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
push r13
push r14
push r15
mov eax, 0x50
call fcn.1403cb200
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1404f2b48]
xor rax, rbp
mov qword [rbp], rax
mov r15, rcx
xor r8d, r8d
lea rcx, [0x1404494a0]
xor edx, edx
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1402cda81
xor r14d, r14d
xor edi, edi
lea r12d, [r14 + 8]
call qword [sym.imp.kernel32.dll_GetACP]
mov ebx, eax
add eax, 0xffff3bd4
cmp eax, 9
ja 0x1402cd838
mov ecx, 0x2a7
bt ecx, eax
jb 0x1402cd850
lea ecx, [rbx - 0xdeaa]
cmp ecx, 9
jbe 0x1402cd850
cmp ebx, 0xfde8
je 0x1402cd850
cmp ebx, 0x2a
jne 0x1402cd853
xor r12d, r12d
and dword [rsp + 0x28], edi
or r9d, 0xffffffff
and qword [rsp + 0x20], rdi
mov r8, r15
mov edx, r12d
mov ecx, ebx
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
movsxd r13, eax
test eax, eax
jle 0x1402cda7c
mov rdx, r13
add rdx, rdx
lea rcx, [rdx + 0x10]
cmp rdx, rcx
sbb rdx, rdx
and rdx, rcx
je 0x1402cda7c
movabs rcx, 0xffffffffffffff0
cmp rdx, 0x400
ja 0x1402cd8d3
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1402cd8b1
mov rax, rcx
and rax, 0xfffffffffffffff0
call fcn.1403cb200
sub rsp, rax
lea rsi, [rsp + 0x40]
test rsi, rsi
je 0x1402cda7c
mov dword [rsi], 0xcccc
jmp 0x1402cd8e9
mov rcx, rdx
call fcn.1403ddfc0
mov rsi, rax
test rax, rax
je 0x1402cd8ed
mov dword [rax], 0xdddd
add rsi, 0x10
test rsi, rsi
je 0x1402cda7c
mov dword [rsp + 0x28], r13d
mov r8, r15
or r13d, 0xffffffff
mov qword [rsp + 0x20], rsi
mov r9d, r13d
mov edx, r12d
mov ecx, ebx
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
xor r12d, r12d
test eax, eax
jle 0x1402cda55
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r15d, eax
test eax, eax
je 0x1402cda55
mov edx, r15d
add rdx, rdx
lea rcx, [rdx + 0x10]
cmp rdx, rcx
sbb rdx, rdx
and rdx, rcx
je 0x1402cda55
cmp rdx, 0x400
ja 0x1402cd98c
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1402cd96e
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1403cb200
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1402cd9a6
mov dword [rbx], 0xcccc
jmp 0x1402cd9a2
mov rcx, rdx
call fcn.1403ddfc0
mov rbx, rax
test rax, rax
je 0x1402cd9a6
mov dword [rax], 0xdddd
add rbx, 0x10
mov rdi, rbx
test rbx, rbx
je 0x1402cda55
mov r8d, r15d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
cmp eax, r15d
jae 0x1402cda55
mov qword [rsp + 0x38], r12
mov r9d, r13d
mov qword [rsp + 0x30], r12
mov r13d, 0xfde9
mov ecx, r13d
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.kernel32.dll_WideCharToMultiByte]
movsxd r15, eax
test eax, eax
jle 0x1402cda55
mov rcx, r15
lea rdx, [0x1404c05a8]
xor r8d, r8d
call fcn.14026ec50
mov r14, rax
test rax, rax
je 0x1402cda55
mov qword [rsp + 0x38], r12
or r9d, 0xffffffff
mov qword [rsp + 0x30], r12
mov r8, rbx
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1402cda55
xor r8d, r8d
lea rdx, [0x1404c05a8]
mov rcx, r14
call fcn.14026eca0
mov r14, r12
lea rcx, [rsi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x1402cda66
call fcn.1403d8820
test rdi, rdi
je 0x1402cda7c
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x1402cda7c
call fcn.1403d8820
mov rax, r14
jmp 0x1402cda96
call fcn.140198ac0
test eax, eax
je 0x1402cda8e
xor eax, eax
jmp 0x1402cda96
mov rcx, r15
call fcn.1403e1f80
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1403cb150
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret