Function at 0x140002a20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x120
mov ebx, edx
mov r8d, 0x100
xor edx, edx
mov rdi, rcx
call fcn.140022720
test ebx, ebx
jne 0x140002b0f
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call fcn.140022720
mov r9, qword [0x14005c318]
test r9, r9
je 0x140002a7f
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x140002a70
test rax, rax
jne 0x140002a9e
mov rbx, qword [0x14005c350]
cmp word [rbx + 0x1e0], 3
jne 0x140002a99
mov rbx, qword [rbx + 0x1e8]
jmp 0x140002a9b
xor ebx, ebx
mov r9, rbx
lea r8, [0x14004bcc8]
mov edx, 0x100
lea rcx, [rsp + 0x20]
call fcn.140001df0
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
je 0x140002cf1
lea ecx, [rax + 1]
cmp ecx, 0x100
jae 0x140002cf1
xor edx, edx
mov r8d, 0x100
mov rcx, rdi
call fcn.140022720
mov r8d, ebx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rdi
ret
mov qword [rsp + 0x130], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
lea rcx, str.kernel32
mov rsi, rax
mov dword [rsp + 0x138], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002b60
lea rdx, [rsp + 0x138]
mov rcx, rsi
call rax
test eax, eax
je 0x140002c23
cmp dword [rsp + 0x138], ebx
je 0x140002c23
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call fcn.140022720
mov rcx, qword [0x14005c308]
test rcx, rcx
je 0x140002ba3
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140002b92
test rax, rax
jne 0x140002ce9
mov rax, qword [0x14005c350]
cmp word [rax + 0x1d0], 3
jne 0x140002bbb
mov rbx, qword [rax + 0x1d8]
mov r9, rbx
lea r8, [0x14004bcc8]
mov edx, 0x100
lea rcx, [rsp + 0x20]
call fcn.140001df0
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
je 0x140002ce9
lea ecx, [rax + 1]
cmp ecx, 0x100
jae 0x140002ce9
xor edx, edx
mov r8d, 0x100
mov rcx, rdi
call fcn.140022720
mov r8d, ebx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x140002ce9
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call fcn.140022720
mov rcx, qword [0x14005c308]
test rcx, rcx
je 0x140002c55
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140002c48
test rax, rax
jne 0x140002cc8
mov rax, qword [0x14005c350]
cmp word [rax + 0x1d0], 3
jne 0x140002c6d
mov rbx, qword [rax + 0x1d8]
mov r9, rbx
lea r8, [0x14004bcc8]
mov edx, 0x100
lea rcx, [rsp + 0x20]
call fcn.140001df0
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
je 0x140002cc8
lea ecx, [rax + 1]
cmp ecx, 0x100
jae 0x140002cc8
xor edx, edx
mov r8d, 0x100
mov rcx, rdi
call fcn.140022720
mov r8d, ebx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, str.syswow64
mov rcx, rdi
call fcn.140021f68
test rax, rax
je 0x140002ce9
movabs rcx, 0x32336d6574737973
mov qword [rax], rcx
mov rsi, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rdi
ret