Function at 0x140070310
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rdi, rdx
mov qword [rbp - 0x38], rdx
xor r13d, r13d
mov dword [rbp - 0x5c], r13d
lea edx, [r13 + 0x25]
xor r8d, r8d
mov rcx, rsi
call fcn.140002d18
mov rdx, rsi
cmp rax, 0xffffffffffffffff
jne 0x140070382
mov rcx, rdi
call fcn.140002e64
nop
mov dword [rbp - 0x5c], 1
jmp 0x1400705f1
lea rcx, [rbp - 0x30]
call fcn.140002e64
nop
mov rcx, rsi
call fcn.140001c60
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x1400703b9
mov rdx, rsi
mov rcx, rdi
call fcn.140002e64
jmp 0x1400705e1
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400a10cc
mov r12, rax
mov rcx, rsi
call fcn.140001c60
mov rcx, rax
lea r8d, [r14 + 1]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400705cd
cmp eax, r14d
ja 0x1400705cd
mov eax, eax
mov word [r12 + rax*2], r13w
mov rcx, r12
call fcn.140001de4
mov r14, rax
lea rcx, [rbp - 0x30]
call fcn.140001ca0
mov rsi, rax
mov r15, qword [rax + 0x18]
cmp r14, r15
ja 0x14007045f
mov rbx, rax
cmp r15, 8
jb 0x140070436
mov rbx, qword [rax]
mov qword [rax + 0x10], r14
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.140001ddc
mov word [rbp - 0x60], r13w
lea rcx, [rbx + r14*2]
lea rdx, [rbp - 0x60]
call fcn.140001dd4
jmp 0x1400705cd
lea rcx, [rbp - 0x30]
call fcn.140001f74
cmp r14, rax
ja 0x140070621
lea rcx, [rbp - 0x30]
call fcn.140001f74
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.140001ca0
mov rcx, r14
or rcx, 7
mov qword [rbp - 0x48], rcx
cmp rcx, rbx
ja 0x1400704c3
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x1400704c3
lea rax, [rcx + rdx]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.140001d84
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x1400704e6
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x1400704f6
cmp rdx, 0x1000
jb 0x140070520
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.1400a08c4
mov rcx, rax
test rax, rax
je 0x140070627
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140070532
test rdx, rdx
je 0x14007052f
mov rcx, rdx
call fcn.1400a08c4
jmp 0x140070532
mov rax, r13
mov qword [rbp - 0x58], rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rbx
mov rbx, qword [rbp - 0x58]
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.140001ddc
mov word [rbp - 0x60], r13w
lea rcx, [rbx + r14*2]
lea rdx, [rbp - 0x60]
call fcn.140001dd4
cmp r15, 8
jb 0x1400705a6
mov rcx, qword [rsi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140070598
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14007061b
mov rcx, r8
call fcn.1400a0900
mov rax, qword [rbp - 0x58]
mov qword [rsi], rax
jmp 0x1400705cd
mov rcx, rsi
call fcn.140001ca0
mov rdx, rax
mov ecx, 8
call fcn.140001bf0
mov rbx, rax
lea rcx, [rbp - 0x58]
call fcn.140001ca0
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rcx, r12
call fcn.1400a0900
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140002e18
mov dword [rbp - 0x5c], 1
lea rcx, [rbp - 0x30]
call fcn.140001c70
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400a08a0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a4d80
int3
call fcn.140001f60
int3
call fcn.1400a4d80
int3