Function at 0x1400c0340
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x160], 0xfffffffffffffffe
mov r15, r9
mov eax, r8d
mov r12, rcx
mov ecx, dword [rbp + 0x1e0]
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
mov dword [r12 + 0x18], r8d
mov qword [r12 + 0x20], 0xffffffffffffffff
xor r13d, r13d
cmp ecx, 0xffffffff
cmovne r13d, ecx
mov rsi, qword [rdx]
mov r8d, 2
mov edi, 4
cmp eax, 0xc0000000
jg 0x1400c03ce
cmp eax, 0x80000000
je 0x1400c0404
cmp eax, 0xc0000000
jne 0x1400c03dc
mov r8d, 4
mov edi, 2
jmp 0x1400c0404
cmp eax, 0xc0000001
je 0x1400c03f9
cmp eax, 0xc0000002
je 0x1400c0404
movabs rax, 0x1100000000
lea rdx, [rbp + 0x108]
mov qword [rdx], rax
lea rsi, [rbp - 0x40]
jmp 0x1400c061c
mov r8d, 8
mov edi, 1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbp + 0x158], rax
test rax, rax
je 0x1400c057c
mov rcx, qword [0x1401b40a0]
test rcx, rcx
jne 0x1400c0452
lea rcx, [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp + 0x130]
mov dword [rbp + 0x154], edi
mov qword [rbp + 0x148], rsi
mov rsi, qword [rbp + 0x1d8]
mov r14, qword [rbp + 0x1d0]
mov rax, r15
xor edx, edx
div rcx
mov rbx, rdx
mov rdi, rsi
sub rdi, rdx
test rsi, rsi
cmove rdi, rsi
test r14, r14
jne 0x1400c04cd
mov ecx, 4
call fcn.1400c126c
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x108]
mov rcx, qword [rbp + 0x158]
xor edx, edx
mov r9d, 0x18
call rax
test eax, eax
jne 0x1400c0658
mov r14, qword [rbp + 0x118]
sub r14, r15
jl 0x1400c0686
or r13d, dword [rbp + 0x154]
lea rax, [r14 + rbx]
sub r15, rbx
mov r8, r15
shr r8, 0x20
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x158]
mov edx, r13d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
je 0x1400c05a9
add rax, rbx
mov qword [r12], rax
mov qword [r12 + 0x10], rbx
mov qword [r12 + 8], r14
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [r12 + 0x20]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rsi
mov rbx, rax
call rsi
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, qword [rbp + 0x148]
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c05de
mov rax, r12
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400372c2
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x140132f10]
cmp dword [rcx + rdx], eax
je 0x1400c060b
add rcx, 8
cmp rcx, 0x100
jne 0x1400c0590
mov eax, 1
jmp 0x1400c060f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x140132f10]
cmp dword [rcx + rdx], eax
je 0x1400c06bc
add rcx, 8
cmp rcx, 0x100
jne 0x1400c05be
mov eax, 1
jmp 0x1400c06c0
call fcn.1400372c2
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x140132f10]
cmp dword [rcx + rdx], eax
je 0x1400c0621
add rcx, 8
cmp rcx, 0x100
jne 0x1400c05f2
mov eax, 1
jmp 0x1400c0625
mov eax, dword [rcx + rdx + 4]
lea rdx, [rbp + 0x108]
mov dword [rdx + 4], eax
mov rsi, rbp
mov rcx, rsi
jmp 0x1400c0641
mov eax, dword [rcx + rdx + 4]
lea rdi, [rbp + 0x108]
mov dword [rdi + 4], eax
mov rcx, r12
call fcn.1400c1062
lea rsi, [rbp + 0x40]
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.1400c0c2c
lea rdx, [0x1401892c0]
mov rcx, rsi
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x140132f10]
cmp dword [rcx + rdx], eax
je 0x1400c06ee
add rcx, 8
cmp rcx, 0x100
jne 0x1400c066d
mov eax, 1
jmp 0x1400c06f2
movabs rax, 0x1200000000
lea rdx, [rbp + 0x100]
mov qword [rdx], rax
lea rcx, [rbp + 0x108]
xor r8d, r8d
call fcn.1400c0c2c
lea rdx, [0x1401892c0]
lea rcx, [rbp + 0x108]
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, dword [rcx + rdx + 4]
lea rdx, [rbp + 0x108]
mov dword [rdx + 4], eax
lea rcx, [rbp + 0xc0]
xor r8d, r8d
call fcn.1400c0c2c
lea rdx, [0x1401892c0]
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x1400c071e
mov eax, dword [rcx + rdx + 4]
lea rdx, [rbp + 0x108]
mov dword [rdx + 4], eax
lea rcx, [rbp + 0x80]
xor r8d, r8d
call fcn.1400c0c2c
lea rdx, [0x1401892c0]
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3