Function at 0x18013a510
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
movaps xmmword [rsp + 0x140], xmm6
mov r15, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rdi, [rsp + 0xf0]
mov qword [rdi], rdx
mov rcx, rdi
call fcn.1800d2060
mov rsi, qword [rdi]
mov rax, qword [0x1803d8468]
test rax, rax
je 0x18013ac0e
mov rcx, qword [0x1803d8470]
cmp rcx, rsi
mov qword [rsp + 0x48], r15
ja 0x18013abb0
cmp rax, rsi
jb 0x18013abb0
lea r8, [rsp + 0x50]
mov qword [r8], 0
mov rdx, qword [rsp + 0xf0]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x18013ac49
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18013abb0
movabs r12, 0x7ffffffffffffff7
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov ebx, eax
call fcn.18010a990
mov r14, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call r14
call fcn.18010a990
call rsi
mov ebx, eax
call fcn.18010a990
mov ecx, ebx
call r14
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x10], r13
movaps xmm6, xmmword [0x1803467d0]
movaps xmmword [rcx], xmm6
call fcn.1800f3690
lea rdx, [rsp + 0x120]
movaps xmmword [rdx], xmm6
lea r8, [rsp + 0x11c]
mov dword [r8], 0xaaaaaaaa
xor ebx, ebx
lea r9, [rsp + 0x110]
mov qword [r9], rbx
lea rax, [rsp + 0x108]
mov qword [rax], rbx
lea r10, fcn.180268ad0
lea rcx, [rsp + 0x50]
mov qword [rcx], r10
mov qword [rcx + 8], rdi
mov qword [rsp + 0x20], rax
call fcn.1800fb6a0
test al, al
je 0x18013abc0
xorps xmm0, xmm0
lea rbx, [rsp + 0x50]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
mov r8, rbx
call fcn.180101d70
test al, al
je 0x18013abca
movzx ecx, byte [rsp + 0x67]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x58]
cmovs rbx, qword [rsp + 0x50]
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rax
test rax, rax
js 0x18013ac54
test rbx, rbx
jne 0x18013a6e0
test rax, rax
jne 0x18013ac92
lea rbx, [rsp + 0xd8]
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.18010abf0
lea r14, [rsp + 0xf0]
mov rcx, rbx
mov rdx, r14
call fcn.18010c180
lea rcx, [rsp + 0x80]
mov rdx, r14
call fcn.18010ae40
mov rcx, r14
call fcn.18010ad40
mov rcx, rbx
call fcn.18010ad40
mov qword [r14 + 0x10], r13
movaps xmmword [r14], xmm6
lea rdx, [rsp + 0x120]
mov rcx, r14
call fcn.1800c0d30
lea rax, [0x1803a0340]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 3
movzx eax, byte [r14 + 0x17]
test al, al
js 0x18013a76c
and eax, 0x7f
jmp 0x18013a77c
mov rax, qword [rsp + 0xf8]
mov r14, qword [rsp + 0xf0]
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], rax
test rax, rax
js 0x18013ac54
test r14, r14
jne 0x18013a7a3
test rax, rax
jne 0x18013ac92
lea rcx, [rsp + 0xa8]
lea rdx, [rsp + 0xb8]
lea r14, [rsp + 0xf0]
mov r8, r14
call fcn.180114380
mov edx, dword [rsp + 0x11c]
mov rcx, rbx
call fcn.1800fdbf0
movzx esi, byte [rsp + 0xef]
test sil, sil
js 0x18013a825
and esi, 0x7f
jmp 0x18013a835
lea r8, [r15 + rsi]
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0xf0]
mov r9, r15
call fcn.18016a524
jmp 0x18013a8d5
mov qword [rsp + 0xf8], r15
jmp 0x18013a8ce
mov rsi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
test rbx, rbx
jne 0x18013a843
test rsi, rsi
jne 0x18013ab27
movzx eax, byte [rsp + 0x107]
mov edx, 0xa
mov r15, rax
test al, al
jns 0x18013a86f
lea rdx, [r12 + 8]
and rdx, qword [rsp + 0x100]
dec rdx
mov r15, qword [rsp + 0xf8]
mov rcx, rdx
sub rcx, r15
cmp rcx, rsi
jb 0x18013a7e4
test rsi, rsi
je 0x18013a8d5
test al, al
jns 0x18013a88f
mov r14, qword [rsp + 0xf0]
lea rcx, [r14 + r15*2]
cmp rcx, rbx
ja 0x18013a8a5
lea rax, [rcx + rsi*2]
cmp rax, rbx
ja 0x18013ab7f
lea r8, [rsi + rsi]
mov rdx, rbx
call fcn.1801e81b0
add r15, rsi
cmp byte [rsp + 0x107], 0
js 0x18013a818
mov eax, r15d
and al, 0x7f
mov byte [rsp + 0x107], al
mov word [r14 + r15*2], 0
cmp byte [rsp + 0xef], 0
js 0x18013ac80
lea rax, [rsp + 0xf0]
movzx edx, byte [rax + 0x17]
mov ecx, edx
and ecx, 0x7f
test dl, dl
cmovs rcx, qword [rax + 8]
cmovs rax, qword [rax]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rcx
test rcx, rcx
js 0x18013ac54
test rax, rax
jne 0x18013a926
test rcx, rcx
jne 0x18013ac92
lea r15, [rsp + 0xd8]
lea rdx, [rsp + 0x98]
mov rcx, r15
call fcn.180102640
mov rbx, qword [r15]
mov r14, qword [r15 + 8]
mov rsi, qword [r15 + 0x10]
cmp byte [rsp + 0x107], 0
jns 0x18013a960
mov rcx, qword [rsp + 0xf0]
call fcn.1801e4f44
cmp byte [rsp + 0x67], 0
jns 0x18013a971
mov rcx, qword [rsp + 0x50]
call fcn.1801e4f44
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
call sub.KERNEL32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, rdi
mov r8, r15
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x18013abb8
mov ecx, 0x58
call fcn.1801e4f08
mov r15, rax
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x60], rax
call fcn.18010a990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.18010a990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, fcn.18013acc0
mov qword [r15], rax
mov qword [r15 + 8], 0
call fcn.18010a990
cmp qword [r15 + 8], rdi
je 0x18013aa24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp qword [r15 + 8], 0
jne 0x18013abfa
mov qword [r15 + 8], rdi
call fcn.18010a990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x60]
mov qword [r15 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [r15 + 0x10], xmm0
test rsi, rsi
jns 0x18013abe9
lea rcx, [r15 + 0x28]
cmp r14, 0x16
jbe 0x18013aa90
cmp r14, r12
ja 0x18013abab
mov rax, r14
and rax, 0xfffffffffffffff8
add rax, 8
mov rdi, r14
or rdi, 7
cmp rdi, 0x17
cmove rdi, rax
inc rdi
mov rcx, rdi
call fcn.1801e4f08
mov rcx, rax
mov qword [r15 + 0x28], rax
add r12, 9
or r12, rdi
mov qword [r15 + 0x38], r12
mov qword [r15 + 0x30], r14
jmp 0x18013aa94
mov byte [r15 + 0x3f], r14b
cmp rcx, rbx
ja 0x18013aaa9
lea rax, [rcx + r14]
inc rax
cmp rax, rbx
ja 0x18013ab53
inc r14
mov rdx, rbx
mov r8, r14
call fcn.1801e81b0
mov rcx, r15
add rcx, 0x40
lea rdx, [rsp + 0x80]
call fcn.18010aaf0
xor edi, edi
test rsi, rsi
jns 0x18013aada
mov rcx, rbx
call fcn.1801e4f44
lea rcx, [rsp + 0x80]
call fcn.18010ad40
test rdi, rdi
jne 0x18013abd6
mov rsi, qword [rsp + 0x48]
mov qword [rsi], r15
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.string::append_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__n__0____s___nullptr
mov r8d, 0xa5f
call fcn.18027be54
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1____n
mov r8d, 0xf3
call fcn.18027be54
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1____n
mov r8d, 0x13b
call fcn.18027be54
call fcn.180267ce0
xor r15d, r15d
jmp 0x18013aaf0
xor r15d, r15d
jmp 0x18013aacd
xor r14d, r14d
xor esi, esi
jmp 0x18013a971
xor r14d, r14d
xor esi, esi
xor ebx, ebx
jmp 0x18013a960
call fcn.18010a990
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x18013aaf0
mov qword [r15 + 0x28], rbx
mov qword [r15 + 0x30], r14
mov qword [r15 + 0x38], rsi
jmp 0x18013aab7
call fcn.18010a990
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x18013aa13
movaps xmm0, xmmword [0x1803467d0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
mov qword [0x1803d8468], rax
mov qword [0x1803d8470], rcx
jmp 0x18013a56d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18013a5ab
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.18027be54
mov rcx, qword [rsp + 0xd8]
call fcn.1801e4f44
jmp 0x18013a8e3
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.18027be54
int3