Function at 0x140046dd0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, r9
mov r12, r8
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], r9
mov r15, qword [rcx]
test r15, r15
jne 0x140046e52
lea rdx, str.Failed_to_open_the_process._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000b180
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000b570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor ebx, ebx
jmp 0x140046f7f
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov rcx, qword [r9 + 0x38]
test rcx, rcx
je 0x140046e79
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x48]
mov rdx, r12
mov rcx, qword [r14]
call fcn.1400469f0
mov r8d, 0x48
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
mov rcx, rbx
test eax, eax
cmovne rcx, qword [rbp - 0x20]
xorps xmm0, xmm0
test rcx, rcx
js 0x140046eb5
cvtsi2sd xmm0, rcx
jmp 0x140046eca
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, qword [0x140054ce0]
xor eax, eax
movsd xmm1, qword [0x140054ce8]
comisd xmm0, xmm1
jb 0x140046ef9
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140046ef9
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si r14, xmm0
add r14, rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r12, qword [rbp - 0x58]
mov r13, qword [rbp - 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x80], rbx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140046f38
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x68], rax
mov qword [rbp + 8], rbx
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140046f5a
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax]
mov qword [rbp + 8], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, r12
mov rdx, r14
mov rcx, r15
call fcn.1400467c0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140046f9b
cmp rcx, rsi
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [rsi + 0x38], rbx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140046fb4
cmp rcx, rdi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140048a50
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret