Function at 0x140056474
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 - 0x58]
sub rsp, 0x158
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r12, rdx
mov qword [rsp + 0x70], r9
mov rbx, rcx
lea rdx, [0x14041bd58]
lea rcx, [0x1403fd71c]
mov r15, r8
call fcn.1400e7410
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp]
mov r13, qword [rbp + 0xc0]
xor esi, esi
xor edx, edx
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x60], rsi
mov edi, esi
mov dword [rbp - 0x80], esi
lea r8d, [rsi + 0x20]
mov qword [rsp + 0x68], rsi
mov qword [rbp + 0x30], rsi
mov dword [rsp + 0x58], esi
mov qword [rbp - 0x70], rsi
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
mov qword [rbp + 0x18], rsi
xor edx, edx
lea r8d, [rsi + 0x30]
lea rcx, [rbp]
movdqu xmmword [rbp + 8], xmm0
call sub.msvcrt.dll_memset
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x50], rsi
mov qword [rbp - 0x68], rsi
cmp qword [rsp + 0x70], rsi
jne 0x14005653c
mov ecx, 0x80070057
mov r14d, ecx
jmp 0x140056f2b
test r13, r13
je 0x14005652f
test r14, r14
je 0x14005652f
mov r14, qword [0x140421ad0]
mov qword [rbp - 8], r14
lea rax, [r14 + 8]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140056572
mov edx, 1
mov rcx, rax
call fcn.140070fcc
mov dword [rbp - 0x80], 1
mov rdx, r15
lea rcx, str.TimeBasedExtendedGrace
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140056781
cmp qword [rbx + 0x10], rsi
jne 0x1400565fa
lea r9, [rsp + 0x40]
mov rdx, r12
lea r8, [0x1403a9518]
call fcn.1400ce2ac
mov r14d, eax
test eax, eax
jns 0x1400565b2
mov ecx, eax
jmp 0x140056f2b
mov r15, qword [rsp + 0x40]
lea rdx, [rbp + 0x30]
mov rcx, r15
call fcn.140051d94
mov r14d, eax
test eax, eax
jns 0x1400565d6
mov ecx, eax
call fcn.140078308
jmp 0x140056f35
mov rcx, qword [rbp - 8]
lea r8, [rbp + 0x30]
mov r9, r12
mov dword [rsp + 0x20], 1
mov rdx, rbx
call fcn.1400d3200
mov r14d, eax
test eax, eax
jns 0x1400565ff
jmp 0x1400565ca
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140056613
mov r14d, 0xc004f002
mov ecx, r14d
jmp 0x1400565cc
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140051ce4
mov r14d, eax
test eax, eax
js 0x1400565ca
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140065140
test al, al
jne 0x140056645
mov r14d, 0xc004f012
jmp 0x14005660e
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x68]
movsxd rax, dword [rsp + 0x40]
add rax, rax
mov rcx, qword [rcx + rax*8 + 8]
call fcn.1400753a4
mov rsi, qword [rbp - 0x68]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp - 0x58]
mov rcx, rsi
lea rdx, str.TimeBasedConvertedToPerpetual
call rbx
mov r12d, 0x80070002
mov r14d, eax
cmp eax, r12d
jne 0x14005676e
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp - 0x58]
mov rcx, rsi
lea rdx, str.TimeBasedExtendedGrace
call rbx
mov r14d, eax
cmp eax, r12d
je 0x14005663d
lea rdx, [0x14041fb48]
lea rcx, [0x1403f8f6c]
call fcn.1400e6078
test r14d, r14d
js 0x14005660e
cmp dword [rbp - 0x50], 2
je 0x1400566ea
mov r14d, 0xc004f01e
jmp 0x14005660e
mov r12d, 4
mov edx, r12d
mov dword [rsp + 0x58], r12d
lea ecx, [r12 + 0x3c]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov rbx, rax
test rcx, rcx
je 0x140056716
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
jne 0x14005672b
and qword [rsp + 0x68], rdi
mov r14d, 0x8007000e
jmp 0x14005660e
mov rcx, qword [rbp - 0x48]
mov rdx, rbx
mov qword [rsp + 0x68], rbx
call fcn.1400754e8
mov r14d, eax
test eax, eax
js 0x1400565ca
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov dword [rax], r12d
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
mov rax, qword [rsp + 0x68]
and qword [rsp + 0x68], rdi
mov qword [rcx], rax
jmp 0x140056f35
test eax, eax
je 0x14005663d
jns 0x140056f35
jmp 0x14005660e
mov rdx, r15
lea rcx, str.RearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140056892
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140051e24
mov r14d, eax
test eax, eax
js 0x1400565ab
mov r14, qword [0x140421b40]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403a2250]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
cmp dword [rsp + 0x48], 1
je 0x140056820
mov ecx, 0x8000ffff
jmp 0x140056534
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403a2250]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140051d94
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rsp + 0x78]
mov r9, r13
mov r8, qword [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.1400cd36c
mov r14d, eax
test eax, eax
jns 0x140056f30
jmp 0x1400565ab
mov rdx, r15
lea rcx, [0x1403a95c0]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140056992
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140051e24
mov r14d, eax
test eax, eax
js 0x1400565ab
mov r14, qword [0x140421b40]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403a2250]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
cmp dword [rsp + 0x48], 1
jne 0x140056816
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403a2250]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140051d94
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rsp + 0x78]
mov r9, r13
mov r8, qword [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.1400cd6f8
jmp 0x140056882
mov rdx, r15
lea rcx, [0x1403a95f8]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140056a92
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140051e24
mov r14d, eax
test eax, eax
js 0x1400565ab
mov r14, qword [0x140421b40]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403a2250]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
cmp dword [rsp + 0x48], 1
jne 0x140056816
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403a2250]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140051d94
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rsp + 0x78]
mov r9, r13
mov r8, qword [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.1400cd170
jmp 0x140056882
mov rdx, r15
lea rcx, str.CustomerPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.VLActivationType
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.VLActivationInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.VLRenewalInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, [0x1403a9400]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.KeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
lea rdx, [0x14041ded0]
lea rcx, [0x1403ff640]
call fcn.1400e7de0
mov rdx, r15
lea rcx, str.KeyManagementServiceLookupDomain
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, [0x1403a9680]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServiceIpAddress
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.ADActivationObjectName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.ADActivationObjectDN
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.ADActivationCsvlkPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.ADActivationCsvlkSkuID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.TokenActivationILID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.TokenActivationILVID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, [0x1403a9910]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.TokenActivationCertThumbprint
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.TokenActivationAdditionalInfo
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.InheritedActivationId
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.InheritedActivationHostMachineName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.InheritedActivationHostDigitalPid2
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.InheritedActivationActivationTime
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140056e19
mov rdx, r15
lea rcx, str.DigitalEncryptedPID
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140056d4e
lea r9, [rbp + 0x30]
mov r8, r15
mov rdx, r12
call fcn.1400ce2ac
mov r14d, eax
test eax, eax
jns 0x140056cf4
mov ecx, eax
call fcn.140078308
mov rdi, qword [rbp + 0x30]
jmp 0x140056f30
mov rdi, qword [rbp + 0x30]
lea rdx, [0x14041e5dc]
lea rcx, [0x1403f787c]
call fcn.1400e775c
mov r8d, 0x7fffffff
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400753fc
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rax, qword [rsp + 0x70]
mov dword [rax], 1
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
mov rax, rdi
xor edi, edi
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
jmp 0x140056f30
lea rax, [0x14001b4a0]
mov qword [rbp], r12
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x38]
lea rax, [rbp - 0x7c]
mov qword [rbp + 0x28], r14
mov qword [rbp - 0x28], rax
mov ebx, 3
lea rax, [rbp]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x20], rax
mov r15d, 0xb9
lea rax, [rbp - 0x70]
xor r9d, r9d
lea r12d, [rbx + 0x2d]
mov qword [rbp - 0x18], rax
mov r8d, r12d
mov ecx, r15d
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x7c]
test r14d, r14d
js 0x140056f28
mov rax, qword [rbp - 0x70]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea rax, [0x140036820]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rax
mov r8d, r12d
lea rax, [rbp - 0x78]
mov ecx, r15d
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x78]
test r14d, r14d
js 0x140056f28
mov rax, qword [rsp + 0x70]
mov dword [rax], ebx
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
mov rax, qword [rsp + 0x68]
and qword [rsp + 0x68], rsi
jmp 0x140056d41
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140051e24
mov r14d, eax
test eax, eax
js 0x1400565ab
mov r14, qword [0x140421b40]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403a2250]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
cmp dword [rsp + 0x48], 1
jne 0x140056816
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403a2250]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140051d94
mov r14d, eax
test eax, eax
js 0x1400565ab
mov rcx, qword [rsp + 0x78]
lea rdx, [rbp + 0x30]
mov rax, qword [rsp + 0x70]
mov r9, r15
mov qword [rsp + 0x30], rcx
mov r8, r12
mov qword [rsp + 0x28], r13
lea rcx, str.msft:spp_notifications_api_getinformation_sku
mov qword [rsp + 0x20], rax
call fcn.1400cd874
mov r14d, eax
test eax, eax
jns 0x140056f30
lea rdx, [0x1404207c0]
lea rcx, [0x140409c6c]
call fcn.1400e7a9c
mov ecx, r14d
call fcn.140078308
mov r15, qword [rsp + 0x40]
mov ecx, r14d
call fcn.140078324
test rsi, rsi
je 0x140056f57
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403a2250]
mov rcx, rsi
call rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140056f7c
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [0x1403a2250]
mov rcx, rbx
call rsi
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140056f8c
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x140056f9a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp]
call fcn.1400570b0
lea rcx, [rbp - 0x70]
call fcn.14005700c
test rdi, rdi
je 0x140056fba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140056fd0
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x68], 0
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x140056fe7
cmp dword [rbp - 0x80], 0
je 0x140056fe7
mov rcx, rax
call fcn.140070e60
mov eax, r14d
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14035a4e0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret