Function at 0x140179ecc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x50], 0
xor edi, edi
mov rcx, qword [rcx + 0x18]
xor esi, esi
xor ebx, ebx
mov qword [rbp - 0x48], rdi
xor r12d, r12d
mov qword [rbp - 0x38], rsi
xor r15d, r15d
mov qword [rbp - 0x30], rbx
xor r14d, r14d
mov qword [rbp - 0x40], rcx
xor eax, eax
cmp r8d, 0x20
je 0x140179f72
cmp dword [0x140440928], 1
cmove rax, qword [0x140440050]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx]
mov r13, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, r13
call rax
mov rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x40]
mov rax, r13
call rax
mov r13d, eax
test eax, eax
jns 0x14017a224
mov ecx, eax
call fcn.140079c40
jmp 0x14017a231
cmp dword [0x140440928], 1
cmove rax, qword [0x14043fff0]
mov qword [rbp - 0x28], rax
mov rax, qword [rcx]
mov r13, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, r13
call rax
mov rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x40]
mov rax, r13
call rax
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rcx, qword [rbp + 0x40]
cmove r8, qword [0x140440148]
mov r9d, dword [rax]
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x18]
call fcn.14017ce00
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x50]
cmove r8, qword [0x140440150]
mov r9, qword [rax + 0x10]
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x18]
call fcn.14017cc4c
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
imul rax, qword [rax + 0x10], 0x2710
mov rcx, rax
mov dword [rbp - 0x40], eax
shr rcx, 0x20
mov dword [rbp - 0x3c], ecx
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.140079c60
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x40]
call fcn.14017beb8
mov r13d, eax
test eax, eax
jns 0x14017a066
mov ecx, eax
call fcn.140079c40
mov rdi, qword [rbp - 0x48]
jmp 0x14017a231
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12, rax
test rax, rax
jne 0x14017a088
mov ecx, 0x8007000e
mov r13d, ecx
jmp 0x140179f68
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rax, qword [rbp + 0x40]
cmove r8, qword [0x140440158]
mov rcx, qword [rax + 0x18]
call fcn.14015f424
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x50]
cmove r8, qword [0x140440160]
mov r9, qword [rax + 8]
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x18]
call fcn.14017cc4c
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
imul rax, qword [rax + 8], 0x2710
mov rcx, rax
mov dword [rbp - 0x40], eax
shr rcx, 0x20
mov dword [rbp - 0x3c], ecx
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.140079c60
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.14017beb8
mov r13d, eax
test eax, eax
jns 0x14017a13b
mov ecx, eax
call fcn.140079c40
mov rsi, qword [rbp - 0x38]
jmp 0x14017a231
mov rsi, qword [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rax, rax
je 0x14017a07b
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rax, qword [rbp + 0x40]
cmove r8, qword [0x140440168]
mov rcx, qword [rax + 0x18]
call fcn.14015f424
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x50]
cmove r8, qword [0x140440170]
mov r9, qword [rax + 0x18]
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x18]
call fcn.14017cc4c
mov r13d, eax
test eax, eax
js 0x140179f66
mov rax, qword [rbp + 0x48]
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + 0x18]
call fcn.14017bc78
mov r13d, eax
test eax, eax
jns 0x14017a1e0
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rbp - 0x30]
jmp 0x14017a231
mov rbx, qword [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rax, rax
je 0x14017a07b
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rax, qword [rbp + 0x40]
cmove r8, qword [0x140440178]
mov rcx, qword [rax + 0x18]
call fcn.14015f424
jmp 0x140179f5b
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x50]
call fcn.140076ce8
mov ecx, r13d
call fcn.140079c60
test r14, r14
je 0x14017a247
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x14017a268
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
test r15, r15
je 0x14017a276
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rsi, rsi
je 0x14017a297
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
test r12, r12
je 0x14017a2a5
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x14017a2c6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x14001a1d8]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xc0]
mov eax, r13d
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret