Function at 0x140029fb0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140026dc0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x3e0], rax
test rax, rax
je 0x14002a137
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3d8], rax
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x400], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14002a070
jmp 0x14002a05f
jae 0x14002a149
cmp r8, 0x201
jae 0x14002a070
mov esi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x14002a0c8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002a09f
lea rcx, [rbp + 0x3c0]
mov rdx, r12
call fcn.140054500
mov rax, qword [rbp + 0x3c0]
mov qword [rbp + 0x400], rax
mov rdi, qword [rbp + 0x3c8]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d0], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x400]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x3e0]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14002a0f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002a277
mov r8d, r14d
cmp r15, r8
jne 0x14002a050
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002a2d7
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002a05f
jmp 0x14002a070
lea rcx, [rbp - 0x60]
call fcn.140026fd0
mov byte [rsi + 0x18], 2
jmp 0x14002a25c
cmp rsi, r8
jb 0x14002a2f1
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.140028140
mov rsi, qword [rbp + 0x3a0]
movups xmm6, xmmword [rbp + 0x3a8]
movzx ebx, byte [rbp + 0x3b8]
mov eax, dword [rbp + 0x3b9]
mov dword [rbp + 0x3f0], eax
mov eax, dword [rbp + 0x3bc]
mov dword [rbp + 0x3f3], eax
test rdi, rdi
je 0x14002a1a9
mov rcx, qword [0x141303bb8]
xor edx, edx
mov r8, qword [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp bl, 2
jne 0x14002a219
mov rax, qword [rbp + 0x3f8]
mov byte [rax + 0x18], 2
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14002a23c
test rax, rax
je 0x14002a23c
lea rax, [rsi - 1]
mov qword [rbp + 0x400], rax
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
mov qword [rbp + 0x3e8], rcx
mov qword [rbp + 0x3f8], rax
call qword [rax]
mov rax, qword [rbp + 0x3f8]
cmp qword [rax + 8], 0
je 0x14002a2b1
cmp qword [rax + 0x10], 0x11
jae 0x14002a297
mov r8, qword [rbp + 0x3e8]
jmp 0x14002a2a2
mov eax, dword [rbp + 0x3f0]
mov ecx, dword [rbp + 0x3f3]
mov rdx, qword [rbp + 0x3f8]
mov dword [rdx + 0x1c], ecx
mov dword [rdx + 0x19], eax
mov qword [rdx], rsi
movups xmmword [rdx + 8], xmm6
mov byte [rdx + 0x18], bl
cmp qword [rbp + 0x3d8], 0
je 0x14002a25c
mov rcx, qword [0x141303bb8]
xor edx, edx
mov r8, qword [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movaps xmm6, xmmword [rbp + 0x410]
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov bl, 2
test rdi, rdi
jne 0x14002a193
jmp 0x14002a1a9
mov r8, qword [rbp + 0x3e8]
mov r8, qword [r8 - 8]
mov rcx, qword [0x141303bb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141303bb8]
xor edx, edx
mov r8, qword [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x3d8], 0
jne 0x14002a246
jmp 0x14002a25c
lea rcx, [0x1412f08d8]
lea r8, [0x1412f2f78]
mov edx, 0x28
call fcn.1400535f0
jmp 0x14002a306
lea rax, [0x1412f2f60]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140053570
ud2