Function at 0x140001430
Capabilities:
Get system information on windows
Query environment variable
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
movaps xmmword [rsp + 0x180], xmm6
mov rdi, rdx
mov r14d, ecx
mov r13, qword [0x1400db108]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x64]
mov r8d, 0x110
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movabs rax, 0x60000011c
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 2
mov rsi, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
lea rcx, [rsp + 0x58]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x1400014f3
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x58], 0
jne 0x1400014f3
lea rcx, [0x1400db098]
call fcn.140001720
lea rcx, str.PATH
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000159c
mov ebp, eax
mov ecx, eax
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov esi, ebp
dec esi
lea rcx, str.PATH
mov rdx, rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, eax
jne 0x140001594
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
lea eax, [r15 - 1]
cmp eax, 0x7ffe
ja 0x140001594
mov rsi, r14
mov ecx, r15d
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
mov rcx, rbx
mov rdx, rax
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140001589
lea rcx, str.PATH
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r14
call sub.mozglue.dll_free
mov r14, rsi
mov rcx, rbx
call sub.mozglue.dll_free
lea rcx, [0x1400db0ae]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea eax, [r14 + 1]
shl rax, 3
cmp r14d, 0xffffffff
mov rsi, 0xffffffffffffffff
cmovge rsi, rax
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
test r14d, r14d
jle 0x14000168a
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov r15d, r14d
xor esi, esi
xorps xmm6, xmm6
nop word [rax + rax]
mov r12, qword [rdi + rsi*8]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r13, rax
lea r14, [rax + rax*2]
lea rcx, [rax + rax*2]
add rcx, 2
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbp, rax
inc r14d
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r12
mov r9d, r13d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cdqe
mov byte [rbp + rax], 0
mov qword [rbx + rsi*8], rbp
inc rsi
cmp r15, rsi
jne 0x1400015f0
mov r14, qword [rsp + 0x50]
movsxd r12, r14d
mov qword [rbx + r12*8], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
test r14d, r14d
jle 0x140001681
shl r15, 3
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r13, qword [0x1400db108]
jmp 0x1400016a1
movsxd r12, r14d
mov qword [rbx + r12*8], 0
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov ecx, r14d
mov rdx, rbx
call fcn.140001890
mov ebp, eax
mov rcx, rbx
call sub.mozglue.dll_free
test r14d, r14d
je 0x1400016de
dec r12
jmp 0x1400016ce
mov rax, r12
dec rax
test r12d, r12d
mov r12, rax
je 0x1400016de
mov rcx, qword [rdi + r12*8]
test rcx, rcx
je 0x1400016c0
call sub.mozglue.dll_free
jmp 0x1400016c0
mov rcx, rdi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x178]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x140001718
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400addd0
int3