Function at 0x140116580
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 - 0xf]
sub rsp, 0xf8
mov rax, qword [0x1402e4100]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov ecx, 0x40
mov r14d, ecx
cmp dword [rdx + 0x78], 1
jne 0x1401165d8
mov rax, qword [rdx + 0x70]
mov r14d, 4
cmp byte [rax + 0x18], 1
cmove r14d, ecx
mov rax, qword [rdx + 0x70]
mov rcx, qword [rax + 0x10]
mov ebx, dword [rcx + 0x18]
xor edx, edx
mov rax, rdi
div rbx
mov r13d, ebx
sub r13, rdx
add r13, rdi
test rdx, rdx
cmove r13, rdi
lea rcx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r10, qword [rbp - 0x71]
mov qword [rsp + 0x40], r10
mov r8, qword [rbp - 0x69]
mov qword [rsp + 0x58], r8
xor edx, edx
mov rax, r12
div rbx
mov r9, r12
sub r9, rdx
mov qword [rsp + 0x68], r9
mov rdx, r9
sub rdx, r13
mov qword [rsp + 0x60], rdx
je 0x1401167e7
nop dword [rax]
nop word [rax + rax]
mov rcx, r9
sub rcx, r12
mov rax, r12
sub rax, rdx
cmp rax, rcx
jae 0x1401166d9
cmp rdx, r10
jb 0x1401166d9
test rdx, rdx
je 0x1401166d9
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x1401167e7
cmp dword [rbp - 0x19], 0x10000
jne 0x1401166c6
cmp qword [rbp - 0x21], rdi
jb 0x1401166c6
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
mov r9d, 0x3000
mov r8, rdi
lea rdx, [rsp + 0x60]
call qword [rax]
test eax, eax
jns 0x140116765
mov r9, qword [rsp + 0x68]
jmp 0x140116748
mov rdx, qword [rbp - 0x31]
sub rdx, r13
mov qword [rsp + 0x60], rdx
mov r9, qword [rsp + 0x68]
jmp 0x14011674d
cmp r9, r8
jae 0x1401167e7
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
mov rdx, r9
call qword [rax + Ordinal_50]
test eax, eax
jne 0x1401167e7
mov rcx, qword [rbp - 0x21]
cmp dword [rbp - 0x19], 0x10000
jne 0x14011673c
cmp rcx, rdi
jb 0x14011673c
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
mov r9d, 0x3000
mov r8, rdi
lea rdx, [rsp + 0x68]
call qword [rax]
test eax, eax
jns 0x14011676c
mov r9, qword [rsp + 0x68]
jmp 0x140116748
mov r9, qword [rbp - 0x39]
add r9, rcx
mov qword [rsp + 0x68], r9
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1401167e7
mov r8, qword [rsp + 0x58]
mov r10, qword [rsp + 0x40]
jmp 0x140116650
mov r8, qword [rsp + 0x60]
jmp 0x140116771
mov r8, qword [rsp + 0x68]
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 1
mov r9, rdi
mov dword [rsp + 0x20], 0x40
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1401161d0
mov rbx, qword [rax]
xor r13d, r13d
test rbx, rbx
je 0x1401167b3
mov qword [rbp - 0x49], rbx
mov qword [rax], r13
mov r14, qword [rax + 8]
mov qword [rbp - 0x41], r14
mov qword [rax + 8], r13
jmp 0x1401167bb
mov r14, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x49]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401167ca
call fcn.1400cf750
test rbx, rbx
je 0x1401167eb
cmp qword [rbx], 0
je 0x1401167eb
mov dword [r15], r13d
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], r14
mov byte [r15 + 0x18], 1
jmp 0x140116817
mov r14, qword [rbp - 0x41]
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x40
mov r9, r12
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call fcn.140116410
nop
test r14, r14
je 0x140116817
mov rcx, r14
call fcn.1400cf750
mov rax, r15
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401de720
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret