Function at 0x14005ab40
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
xor esi, esi
mov rbx, r8
mov rdi, rdx
mov dword [rbp - 0x61], esi
mov r15, rcx
mov qword [rbp - 0x41], rsi
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rsi + 0x20]
mov r13, r9
mov r12d, esi
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
mov qword [rbp - 0x21], rsi
xor edx, edx
lea r8d, [rsi + 0x30]
lea rcx, [rbp - 0x39]
movdqu xmmword [rbp - 0x31], xmm0
call sub.msvcrt.dll_memset
mov qword [rbp - 0x59], rsi
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x69], rsi
test rdi, rdi
jne 0x14005abc9
mov ecx, 0x80070057
mov esi, ecx
call fcn.14007ab24
jmp 0x14005ae1f
test rbx, rbx
jne 0x14005abe3
lea rdx, [0x14042fc74]
lea rcx, [0x14041a328]
call fcn.1400ec420
jmp 0x14005abb8
test r13, r13
je 0x14005abb8
mov rdi, qword [0x1404379a0]
mov ebx, 1
lea r12, [rdi + 8]
test r12, r12
je 0x14005ac1d
mov edx, ebx
mov rcx, r12
call fcn.140073400
lea rdx, [0x140431658]
lea rcx, [0x140413848]
call fcn.1400ecad0
mov dword [rbp - 0x61], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14005ac45
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
jmp 0x14005ac48
mov r14, rsi
mov qword [rbp - 0x49], r14
test r14, r14
jne 0x14005ac5d
mov esi, 0x8007000e
mov ecx, esi
jmp 0x14005abbf
mov rcx, r14
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [0x140432cbc]
mov ebx, eax
lea rcx, [0x14041cfc4]
call fcn.1400ec0c8
test ebx, ebx
je 0x14005aca1
mov ecx, ebx
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
jmp 0x14005ac56
lea rax, [0x140002b78]
mov dword [rbp - 0x4d], 0x10000
mov qword [rbp - 1], rax
lea rdx, [rbp - 9]
lea rax, [rbp - 0x51]
mov qword [rbp - 0x19], r15
mov qword [rbp + 7], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
mov qword [rbp - 0x11], rdi
mov qword [rbp + 0xf], rax
mov ecx, 0xb9
lea rax, [rbp - 0x41]
mov qword [rbp - 9], 3
lea r8d, [r9 + 0x28]
mov qword [rbp + 0x17], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rbp - 0x51]
test esi, esi
js 0x14005ac56
mov rbx, qword [rbp - 0x41]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa8]
mov rcx, rdi
call qword [0x1403b8660]
mov rdx, qword [rbp + 0x6f]
lea r8, [rbp - 0x69]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
jns 0x14005ad2c
mov ecx, eax
jmp 0x14005abbf
mov edx, 1
lea r9, [rbp - 0x4d]
lea rcx, [rbp - 0x59]
lea r8d, [rdx + 3]
call fcn.140054e10
mov esi, eax
test eax, eax
js 0x14005ad25
mov edx, 2
lea rcx, [rbp - 0x59]
mov r9, r14
lea r8d, [rdx + 0xe]
call fcn.140054e10
mov esi, eax
test eax, eax
js 0x14005ad25
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp + 0x6f]
mov r8d, 0x7fffffff
call fcn.140077ac0
mov esi, eax
test eax, eax
js 0x14005ad25
mov r9, qword [rbp - 0x69]
lea rcx, [rbp - 0x59]
mov r8d, dword [rbp + 0x6f]
mov edx, 3
call fcn.140054e10
mov esi, eax
test eax, eax
js 0x14005ad25
mov r8, qword [rbp + 0x77]
lea rcx, [rbp - 0x59]
mov rdx, r13
call fcn.140054d6c
mov esi, eax
test eax, eax
js 0x14005ad25
mov rbx, qword [r15 + 0x30]
test rbx, rbx
je 0x14005ade7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [r15 + 0x30], 0
lea rdx, [0x140436dfc]
lea rcx, [0x140412b48]
call fcn.1400ece2c
and qword [rbp - 0x49], 0
mov rbx, qword [r15 + 0x38]
mov qword [r15 + 0x30], r14
test rbx, rbx
je 0x14005ae12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [r15 + 0x38], 0
mov rax, qword [rbp - 0x69]
and qword [rbp - 0x69], 0
mov qword [r15 + 0x38], rax
mov ecx, esi
call fcn.14007ab44
lea rcx, [rbp - 0x69]
call fcn.14005af60
lea rcx, [rbp - 0x49]
call fcn.14005aeb4
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x14005ae69
lea rdx, [0x14042f720]
lea rcx, [0x140411e20]
call fcn.1400ec780
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
lea rcx, [rbp - 0x39]
call fcn.140058990
lea rcx, [rbp - 0x41]
call fcn.1400588e4
test r12, r12
je 0x14005ae8e
cmp dword [rbp - 0x61], 0
je 0x14005ae8e
mov rcx, r12
call fcn.14007329c
mov eax, esi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret