Function at 0x1400ca330
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov rsi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x118], rax
lea rdi, [rsp + 0xd0]
mov qword [rdi], rdx
mov rcx, rdi
call fcn.1400ce270
mov rbx, qword [rdi]
mov rax, qword [0x14020c3c0]
test rax, rax
je 0x1400ca5f3
mov rcx, qword [0x14020c3c8]
cmp rcx, rbx
ja 0x1400ca62e
cmp rax, rbx
jb 0x1400ca62e
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x1400ca62e
lea r8, [rsp + 0x30]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x1400ca3d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400ca62e
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov ebx, eax
call fcn.1400f6c70
mov r14, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call r14
call fcn.1400f6c70
call r13
mov ebx, eax
call fcn.1400f6c70
mov ecx, ebx
call r14
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], rbp
movaps xmm6, xmmword [0x1401c1a60]
movaps xmmword [rcx], xmm6
call fcn.1400f75f0
lea rdx, [rsp + 0x100]
movaps xmmword [rdx], xmm6
lea r8, [rsp + 0xfc]
mov dword [r8], 0xaaaaaaaa
xor r14d, r14d
lea r9, [rsp + 0xf0]
mov qword [r9], r14
lea rax, [rsp + 0xe8]
mov qword [rax], r14
lea r10, [0x1401c3910]
lea rcx, [rsp + 0x30]
mov qword [rcx], r10
mov qword [rcx + 8], rdi
mov qword [rsp + 0x20], rax
call fcn.140100470
mov ebx, 0
mov r12d, 0
test al, al
je 0x1400ca4e6
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
mov r8, r15
call fcn.1400eb340
xor r14d, r14d
mov ebx, 0
mov r12d, 0
test al, al
jne 0x1400ca677
cmp byte [rsp + 0x47], 0
jns 0x1400ca4e6
mov rcx, qword [rsp + 0x30]
call fcn.14012a8ec
lea r15, [rsp + 0xd0]
mov qword [r15 + 0x10], rbp
movaps xmmword [r15], xmm6
call sub.KERNEL32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, rdi
mov r8, r15
mov r9d, SafeArrayCopy
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x1400ca5ee
mov ecx, 0x58
call fcn.14012a8b0
mov r15, rax
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
call fcn.1400f6c70
call r13
mov ebp, eax
call fcn.1400f6c70
mov ecx, ebp
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, r13
mov r13, rax
call rax
lea rax, fcn.1400ca8d0
mov qword [r15], rax
mov qword [r15 + 8], 0
call fcn.1400f6c70
call rbp
mov ebp, eax
mov qword [r15 + 8], rdi
call fcn.1400f6c70
mov ecx, ebp
call r13
mov rax, qword [rsp + 0x40]
mov qword [r15 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r15 + 0x10], xmm0
test r12, r12
js 0x1400ca663
mov qword [r15 + 0x28], rbx
mov qword [r15 + 0x30], r14
mov qword [r15 + 0x38], r12
mov rcx, r15
add rcx, 0x40
lea rdx, [rsp + 0x60]
call fcn.1400f7610
xor edi, edi
test r12, r12
jns 0x1400ca5cf
mov rcx, rbx
call fcn.14012a8ec
lea rcx, [rsp + 0x60]
call fcn.1400f7860
test rdi, rdi
je 0x1400ca631
call fcn.1400f6c70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400ca631
xor r15d, r15d
jmp 0x1400ca5c2
movaps xmm0, xmmword [0x1401c1a60]
lea rdi, [rsp + 0x30]
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 [0x14020c3c0], rax
mov qword [0x14020c3c8], rcx
jmp 0x1400ca38d
xor r15d, r15d
mov qword [rsi], r15
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14012b460
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r15 + 0x28]
mov rdx, rbx
mov r8, r14
call fcn.140081520
jmp 0x1400ca5af
movzx ecx, byte [rsp + 0x47]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x38]
cmovs r15, qword [rsp + 0x30]
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], rax
test rax, rax
js 0x1400ca868
test r15, r15
jne 0x1400ca6b6
test rax, rax
jne 0x1400ca894
lea rbx, [rsp + 0xb8]
lea rdx, [rsp + 0xa8]
mov rcx, rbx
call fcn.1400f7720
lea r14, [rsp + 0xd0]
mov rcx, rbx
mov rdx, r14
call fcn.1400f8d10
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.1400f78e0
mov rcx, r14
call fcn.1400f7860
mov rcx, rbx
call fcn.1400f7860
mov qword [r14 + 0x10], rbp
movaps xmmword [r14], xmm6
lea rdx, [rsp + 0x100]
mov rcx, r14
call fcn.140087a40
lea rax, [0x1401db7c0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 3
movzx eax, byte [r14 + 0x17]
test al, al
js 0x1400ca73f
and eax, 0x7f
jmp 0x1400ca74f
mov rax, qword [rsp + 0xd8]
mov r14, qword [rsp + 0xd0]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], rax
test rax, rax
js 0x1400ca868
test r14, r14
jne 0x1400ca776
test rax, rax
jne 0x1400ca894
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x98]
lea r14, [rsp + 0xd0]
mov r8, r14
call fcn.14008b1c0
mov edx, dword [rsp + 0xfc]
mov rcx, rbx
call fcn.14008c2d0
movzx r8d, byte [rsp + 0xcf]
test r8b, r8b
js 0x1400ca7b9
and r8d, 0x7f
jmp 0x1400ca7c9
mov r8, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rcx, r14
mov rdx, rbx
call fcn.140082230
cmp byte [rsp + 0xcf], 0
jns 0x1400ca7eb
mov rcx, qword [rsp + 0xb8]
call fcn.14012a8ec
movzx ecx, byte [rsp + 0xe7]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0xd8]
cmovs r14, qword [rsp + 0xd0]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], rax
test rax, rax
js 0x1400ca868
test r14, r14
jne 0x1400ca828
test rax, rax
jne 0x1400ca894
lea r15, [rsp + 0xb8]
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.1400ebbe0
mov rbx, qword [r15]
mov r14, qword [r15 + 8]
mov r12, qword [r15 + 0x10]
cmp byte [rsp + 0xe7], 0
jns 0x1400ca4d5
mov rcx, qword [rsp + 0xd0]
call fcn.14012a8ec
jmp 0x1400ca4d5
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.140166ee0
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.140166ee0
int3