Function at 0x140002590
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140002600
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call sub.KERNEL32.dll_GetSystemInfo
mov edi, dword [rbp - 0x3c]
mov dword [rbp + 0x14], 0
lea r9, [rbp + 0x14]
mov rcx, rsi
mov rdx, rdi
mov r8d, 4
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x140002633
mov r8d, dword [rbp + 0x14]
jmp 0x1400026b2
lea rax, str.Error:_Failed_to_get_base_address._n
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [0x1400c16b0]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x40]
call fcn.140033670
jmp 0x14000280d
call sub.KERNEL32.dll_GetLastError
mov dword [rbp + 0x10], eax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x50], rax
lea rax, [fcn.140053b70]
mov qword [rbp - 0x48], rax
lea rax, [0x1400c1f18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea r14, [rbp - 0x50]
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 1
lea rbx, [rbp - 8]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.14004e4c0
mov rax, qword [rbp - 8]
mov r8d, dword [rbp]
mov rcx, qword [rbp + 4]
mov qword [rbp - 0x60], rcx
mov ecx, dword [rbp + 0xc]
mov dword [rbp - 0x58], ecx
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400027a0
test edi, edi
je 0x14000271c
mov eax, edi
and eax, 7
cmp edi, 8
jae 0x1400026c4
xor ecx, ecx
jmp 0x140002700
mov edx, edi
and edx, 0xfffffff8
xor ecx, ecx
nop dword [rax + rax]
mov byte [rsi + rcx], 0
mov byte [rsi + rcx + 1], 0
mov byte [rsi + rcx + 2], 0
mov byte [rsi + rcx + 3], 0
mov byte [rsi + rcx + 4], 0
mov byte [rsi + rcx + 5], 0
mov byte [rsi + rcx + 6], 0
mov byte [rsi + rcx + 7], 0
add rcx, 8
cmp rdx, rcx
jne 0x1400026d0
test rax, rax
je 0x14000271c
mov rdx, rsi
add rdx, rcx
xor ecx, ecx
nop dword [rax]
mov byte [rdx + rcx], 0
inc rcx
cmp rax, rcx
jne 0x140002710
mov dword [rbp + 0x14], 0
lea r9, [rbp + 0x14]
mov rcx, rsi
mov rdx, rdi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14000280d
call sub.KERNEL32.dll_GetLastError
mov dword [rbp + 0x10], eax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x50], rax
lea rax, [fcn.140053b70]
mov qword [rbp - 0x48], rax
lea rax, [0x1400c1f18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x40]
call fcn.14004e4c0
mov rdx, qword [rbp - 8]
lea rax, [rdx*2]
test rax, rax
je 0x14000280d
jmp 0x1400027fe
mov qword [rbp - 8], rax
mov dword [rbp], r8d
mov rax, qword [rbp - 0x60]
mov qword [rbp + 4], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xc], eax
mov qword [rbp - 0x50], rbx
lea rax, [0x140001c50]
mov qword [rbp - 0x48], rax
lea rax, str.Error:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 1
lea rcx, [rbp - 0x40]
call fcn.140033670
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x14000280d
mov rcx, qword [rbp]
mov r8d, 1
call fcn.140016900
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret