Function at 0x140107960
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, 0x158
movaps xmmword [rsp + 0x140], xmm6
mov rsi, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov qword [rsp + 0xe0], rdx
lea rcx, [rsp + 0xe0]
call fcn.140024bd0
mov rdi, qword [rsp + 0xe0]
mov rax, qword [0x1401de258]
test rax, rax
je 0x1401079ca
mov rcx, qword [0x1401de260]
cmp rcx, rdi
jbe 0x140107a0f
jmp 0x140107b63
movaps xmm0, xmmword [0x1401990c0]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x1401de258], rax
mov qword [0x1401de260], rcx
cmp rcx, rdi
ja 0x140107b63
cmp rax, rdi
jb 0x140107b63
mov qword [rsp + 0x60], 0
mov rdx, qword [rsp + 0xe0]
lea r8, [rsp + 0x60]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x140107a43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140107b63
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
mov ebx, eax
call fcn.140075ef0
mov r14, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call r14
call fcn.140075ef0
call rbp
mov ebx, eax
call fcn.140075ef0
mov ecx, ebx
call r14
mov dword [rsp + 0x11b], 0
mov dword [rsp + 0x118], 0
movaps xmm6, xmmword [0x1401990c0]
movaps xmmword [rsp + 0x120], xmm6
mov dword [rsp + 0x114], 0xaaaaaaaa
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x100], 0
lea rax, method.std::__Cr::locale::facet.virtual_0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x120]
lea r8, [rsp + 0x114]
lea r9, [rsp + 0x108]
call fcn.140084180
movabs r12, 0xaaaaaaaaaaaaaaaa
test al, al
je 0x140107b6b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
lea rbx, [rsp + 0x60]
mov r8, rbx
call fcn.140064fe0
test al, al
je 0x140107b89
movzx eax, byte [rsp + 0x77]
test al, al
js 0x140107ba7
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rax
jmp 0x140107bd5
xor r12d, r12d
jmp 0x14010806e
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x50], rax
xor r15d, r15d
xor r13d, r13d
xor r14d, r14d
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x140107ee7
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x50], rax
xor r15d, r15d
xor r13d, r13d
xor r14d, r14d
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x140107ed6
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rcx
test rcx, rcx
js 0x1401080b2
je 0x140107bd5
test rax, rax
je 0x1401080b5
lea r15, [rsp + 0xc0]
lea rdx, [rsp + 0xb0]
mov rcx, r15
call fcn.140077ff0
lea rdx, [rsp + 0xe0]
mov rcx, r15
call fcn.140078d10
mov rbx, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xe8]
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x118], eax
mov eax, dword [rsp + 0xf3]
mov dword [rsp + 0x11b], eax
movzx eax, byte [rsp + 0xf7]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0xf7], 0
mov word [rsp + 0xe0], 0
cmp byte [rsp + 0xd7], 0
jns 0x140107c5f
mov rcx, qword [rsp + 0xc0]
call fcn.140150da4
mov qword [rsp + 0xf0], r12
movaps xmmword [rsp + 0xe0], xmm6
lea r12, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rcx, r12
call fcn.1400ad890
lea rax, [0x1401b1604]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 3
movzx eax, byte [rsp + 0xf7]
test al, al
mov qword [rsp + 0x50], r14
js 0x140107cc5
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], rax
jmp 0x140107cf9
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
test rcx, rcx
js 0x1401080b8
je 0x140107cf9
test rax, rax
je 0x1401080bb
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0xa0]
lea r12, [rsp + 0xe0]
mov r8, r12
call fcn.140055410
mov edx, dword [rsp + 0x114]
mov rcx, r15
call fcn.1401041c0
movzx r14d, byte [rsp + 0xd7]
test r14b, r14b
jns 0x140107d46
mov r14, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xc0]
test r14, r14
je 0x140107d54
test r15, r15
je 0x1401080af
movzx eax, byte [rsp + 0xf7]
mov edx, 0xa
mov r13, rax
test al, al
jns 0x140107d85
movabs rdx, 0x7fffffffffffffff
and rdx, qword [rsp + 0xf0]
dec rdx
mov r13, qword [rsp + 0xe8]
mov rcx, rdx
sub rcx, r13
cmp rcx, r14
jae 0x140107dc1
lea r8, [r14 + r13]
sub r8, rdx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0xe0]
mov r9, r13
call fcn.140050c40
jmp 0x140107e1e
test r14, r14
je 0x140107e1e
test al, al
jns 0x140107dd2
mov r12, qword [rsp + 0xe0]
lea rcx, [r12 + r13*2]
cmp rcx, r15
ja 0x140107de8
lea rax, [rcx + r14*2]
cmp rax, r15
ja 0x1401080c4
lea r8, [r14 + r14]
mov rdx, r15
call fcn.140153d10
add r13, r14
cmp byte [rsp + 0xf7], 0
js 0x140107e0f
mov eax, r13d
and al, 0x7f
mov byte [rsp + 0xf7], al
jmp 0x140107e17
mov qword [rsp + 0xe8], r13
mov word [r12 + r13*2], 0
cmp byte [rsp + 0xd7], 0
jns 0x140107e35
mov rcx, qword [rsp + 0xc0]
call fcn.140150da4
movzx edx, byte [rsp + 0xf7]
test dl, dl
mov r15, qword [rsp + 0x58]
movabs r12, 0xaaaaaaaaaaaaaaaa
js 0x140107e5a
lea rcx, [rsp + 0xe0]
jmp 0x140107e7e
mov rdx, qword [rsp + 0xe8]
test rdx, rdx
js 0x1401080be
mov rcx, qword [rsp + 0xe0]
je 0x140107e7e
test rcx, rcx
je 0x1401080c1
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
lea r8, [rsp + 0xc0]
call fcn.140064a30
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov r13, qword [rsp + 0xc8]
mov r14, qword [rsp + 0xd0]
cmp byte [rsp + 0xf7], 0
jns 0x140107ed6
mov rcx, qword [rsp + 0xe0]
call fcn.140150da4
cmp byte [rsp + 0x77], 0
jns 0x140107ee7
mov rcx, qword [rsp + 0x60]
call fcn.140150da4
mov qword [rsp + 0xf0], r12
movaps xmmword [rsp + 0xe0], xmm6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xe0]
mov rcx, rax
mov rdx, rdi
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x140107fda
mov qword [rsp + 0x58], r15
mov r15, rbx
mov ecx, 0x58
call fcn.140150d68
mov r12, rax
movaps xmm0, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x70], rax
call fcn.140075ef0
call rbp
mov ebx, eax
call fcn.140075ef0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x14019b5c0]
mov qword [r12], rax
mov qword [r12 + 8], 0
call fcn.140075ef0
call rbp
mov ebp, eax
cmp qword [r12 + 8], 0
je 0x140107f98
call fcn.140075ef0
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [r12 + 8], rdi
call fcn.140075ef0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x70]
mov qword [r12 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r12 + 0x10], xmm0
test r14, r14
js 0x140107fe4
mov rax, qword [rsp + 0x48]
mov qword [r12 + 0x28], rax
mov qword [r12 + 0x30], r13
mov qword [r12 + 0x38], r14
jmp 0x140107ff6
xor r12d, r12d
test r14, r14
jns 0x140108056
jmp 0x14010804c
lea rcx, [r12 + 0x28]
mov rdx, qword [rsp + 0x48]
mov r8, r13
call fcn.14004ff7c
mov rbx, r15
mov r15, qword [rsp + 0x58]
test r15b, r15b
js 0x140108031
mov qword [r12 + 0x40], rbx
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x48], rax
mov eax, dword [rsp + 0x118]
mov ecx, dword [rsp + 0x11b]
mov dword [r12 + 0x50], eax
mov dword [r12 + 0x53], ecx
mov byte [r12 + 0x57], r15b
jmp 0x140108045
mov rcx, r12
add rcx, 0x40
mov rdx, rbx
mov r8, qword [rsp + 0x50]
call fcn.140050dce
xor edi, edi
test r14, r14
jns 0x140108056
mov rcx, qword [rsp + 0x48]
call fcn.140150da4
test r15b, r15b
js 0x1401080a0
test rdi, rdi
je 0x14010806e
call fcn.140075ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsi], r12
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140152280
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140150da4
test rdi, rdi
jne 0x140108060
jmp 0x14010806e
int3
int3
int3
int3
int3
int3
int3
int3