Function at 0x140183cfc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
lea rcx, [rbp - 0x38]
cmp dword [0x140452c58], 1
mov rsi, r8
mov r15, rdx
mov qword [rbp - 0x60], r12
mov r8d, r12d
mov qword [rbp - 0x58], r12
cmove r8, qword [0x1404522c0]
lea rdx, [0x1403eb990]
mov edi, r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov ebx, r12d
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x50], r12
call fcn.140071dc0
mov r14d, eax
test eax, eax
jns 0x140183d80
mov ecx, eax
call fcn.140082a8c
jmp 0x140183fe9
mov edx, 0x5c
lea r8, [rbp - 0x48]
mov rcx, rsi
call fcn.140072610
mov r14d, eax
test eax, eax
js 0x140183d74
lea rdx, [rbp - 0x58]
mov rcx, r15
call fcn.14016f740
mov r13d, r12d
cmp dword [rbp - 0x44], r12d
jle 0x140183fdc
mov rax, qword [rbp - 0x40]
lea rdx, str.__s__name_s_
xor r8d, r8d
lea rcx, [rbp - 0x38]
cmp dword [0x140452c58], 1
cmove r8, qword [0x1404522c8]
mov r9, qword [rax + r12]
call fcn.140071dc0
mov r14d, eax
test eax, eax
js 0x140183d74
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rbx, rbx
je 0x140183dfd
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15, r15
je 0x14018411f
mov rbx, r15
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x140183e32
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
mov rcx, rsi
call rax
mov rax, rsi
mov rcx, rbx
call rax
and qword [rbp - 0x60], 0
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140183e5b
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
mov rcx, rsi
call rax
mov rax, rsi
mov rcx, rbx
call rax
and qword [rbp - 0x50], 0
mov r14, qword [rbp + 0x40]
mov rsi, qword [r14 + 0x18]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x128]
mov rax, qword [0x1403cf6d0]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x50]
mov rdx, r15
mov rcx, rsi
call rax
test eax, eax
jne 0x140183eba
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx]
mov rsi, qword [rax]
mov rax, qword [0x1403cf6d0]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rbp - 0x60]
lea rdx, [0x1403ec118]
mov rcx, rbx
call rax
jmp 0x140183f87
mov r14, qword [r14 + 0x18]
xor esi, esi
cmp dword [0x140452c58], 1
cmove rsi, qword [0x1404522c8]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x60]
mov rdx, rsi
mov rcx, r14
call rax
mov r14d, eax
test eax, eax
js 0x140184104
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax + r12]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rdi, rdi
je 0x140183f1e
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rsi, rsi
je 0x140184113
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, rsi
mov rdx, qword [rbp - 0x60]
mov rdi, rsi
cmove r8, qword [0x140452370]
mov rcx, qword [rcx + 0x18]
call fcn.140169600
mov r14d, eax
test eax, eax
js 0x140184104
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa8]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rdx, qword [rbp - 0x60]
mov rax, rdi
xor r8d, r8d
mov rcx, rbx
call rax
mov rdi, rsi
mov r14d, eax
test eax, eax
js 0x140184104
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140183fbb
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rax, qword [0x1403cf6d0]
mov rcx, rsi
call rax
mov rax, rsi
mov rcx, rbx
call rax
and qword [rbp - 0x58], 0
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x58]
call fcn.14016f740
inc r13d
add r12, 8
mov rbx, r15
cmp r13d, dword [rbp - 0x44]
jl 0x140183db1
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x60]
call fcn.14016f740
mov ecx, r14d
call fcn.140082b34
mov r15d, 3
lea rax, [0x14003189c]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x50]
mov qword [rbp - 0x28], r15
xor r12d, r12d
mov qword [rbp - 0x10], rax
lea r13d, [r15 + 0x1d]
mov qword [rbp - 0x18], r12
mov r8d, r13d
xor r9d, r9d
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov rsi, qword [rbp - 0x38]
test rsi, rsi
je 0x14018404a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x140184058
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.1400824bc
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140184080
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x28], r15
mov ebx, 0xb9
mov qword [rbp - 0x18], r12
lea rsi, [0x140028cdc]
mov qword [rbp - 0x10], rax
mov ecx, ebx
mov qword [rbp - 0x20], rsi
xor r9d, r9d
lea rdx, [rbp - 0x28]
mov r8, r13
call sub.ntdll.dll_NtQuerySystemInformation
test rdi, rdi
je 0x1401840bf
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rax, [rbp - 0x60]
mov qword [rbp - 0x28], r15
xor r9d, r9d
mov qword [rbp - 0x10], rax
mov r8, r13
mov qword [rbp - 0x20], rsi
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x18], r12
mov rcx, rbx
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xc8]
mov eax, r14d
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call fcn.140082a8c
mov rbx, r15
jmp 0x140183fe9
mov ecx, 0x8007000e
xor edi, edi
mov r14d, ecx
jmp 0x140184106
mov ecx, 0x8007000e
xor ebx, ebx
mov r14d, ecx
jmp 0x140183d76