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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14d, 0xffff
lea rdi, [rsp + 0x38]
xor eax, eax
mov ecx, Ordinal_49
rep stosb byte [rdi], al
mov word [rsp + 0x38], r14w
lea rdi, [rsp + 0x70]
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, str._Systemroot_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x70]
lea rax, [rsp + 0x70]
xor r15d, r15d
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14001aa50
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14001ab4b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001f70
mov rbx, qword [rsp + 0x20]
jmp 0x14001ab4b
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14001aac9
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001ab4b
cmp dword [rdx + 0x10], eax
jge 0x14001aa9c
cmp dword [rbx - 0xc], eax
jge 0x14001aa8f
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14001ab4b
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001aab2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x14001ab4b
mov r13d, dword [rbx - 0x10]
lea r12, [rsp + 0x70]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x14001aae7
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001ab09
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14001ab2e
lea r8, [rbx + r12*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14001ab39
lea r8, [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x14001ac59
mov dword [rbx - 0x10], edi
mov word [r13 + rbx], r15w
lea r8, str.System32Kernel32.dll
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14001abbb
cmp dword [rbx + 0x10], 0
jl 0x14001abac
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001abac
call fcn.140001b90
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14001aba1
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x14001abbb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001abda
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14001ac3c
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x14001ac0e
call rax
jmp 0x14001ac14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx r11d, word [rsp + 0x38]
test r11d, r11d
je 0x14001ac39
mov eax, 9
cmp r11d, eax
cmovne eax, r14d
mov r14d, eax
jmp 0x14001ac3c
mov r14d, r15d
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001ac54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, r14d
jmp 0x14001ac64
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret