Function at 0x140084e70
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 0x140084efe
cmp eax, 0x80000000
je 0x140084f34
cmp eax, 0xc0000000
jne 0x140084f0c
mov r8d, 4
mov edi, 2
jmp 0x140084f34
cmp eax, 0xc0000001
je 0x140084f29
cmp eax, 0xc0000002
je 0x140084f34
movabs rax, 0x1100000000
lea rdx, [rbp + 0x108]
mov qword [rdx], rax
lea rsi, [rbp - 0x40]
jmp 0x14008514e
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 0x1400850ac
mov rcx, qword [0x14018ac80]
test rcx, rcx
jne 0x140084f82
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 0x140084ffd
mov ecx, 4
call fcn.140085c02
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 0x14008518a
mov r14, qword [rbp + 0x118]
sub r14, r15
jl 0x1400851b8
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 0x1400850da
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 0x14008510f
mov rax, r12
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x1401150a0]
cmp dword [rcx + rdx], eax
je 0x14008513d
add rcx, 8
cmp rcx, 0x100
jne 0x1400850c1
mov eax, 1
jmp 0x140085141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x1401150a0]
cmp dword [rcx + rdx], eax
je 0x1400851ee
add rcx, 8
cmp rcx, 0x100
jne 0x1400850ef
mov eax, 1
jmp 0x1400851f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x108], eax
xor ecx, ecx
lea rdx, [0x1401150a0]
cmp dword [rcx + rdx], eax
je 0x140085153
add rcx, 8
cmp rcx, 0x100
jne 0x140085124
mov eax, 1
jmp 0x140085157
mov eax, dword [rcx + rdx + 4]
lea rdx, [rbp + 0x108]
mov dword [rdx + 4], eax
mov rsi, rbp
mov rcx, rsi
jmp 0x140085173
mov eax, dword [rcx + rdx + 4]
lea rdi, [rbp + 0x108]
mov dword [rdi + 4], eax
mov rcx, r12
call fcn.140085a8e
lea rsi, [rbp + 0x40]
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.1400855ce
lea rdx, [0x14016a070]
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, [0x1401150a0]
cmp dword [rcx + rdx], eax
je 0x140085220
add rcx, 8
cmp rcx, 0x100
jne 0x14008519f
mov eax, 1
jmp 0x140085224
movabs rax, 0x1200000000
lea rdx, [rbp + 0x100]
mov qword [rdx], rax
lea rcx, [rbp + 0x108]
xor r8d, r8d
call fcn.1400855ce
lea rdx, [0x14016a070]
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.1400855ce
lea rdx, [0x14016a070]
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x140085250
mov eax, dword [rcx + rdx + 4]
lea rdx, [rbp + 0x108]
mov dword [rdx + 4], eax
lea rcx, [rbp + 0x80]
xor r8d, r8d
call fcn.1400855ce
lea rdx, [0x14016a070]
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3