Function at 0x140057d5c
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 [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r14, qword [rbp + 0xc8]
xor esi, esi
mov r13, qword [rbp + 0xc0]
mov r15, r8
mov r12, rdx
mov qword [rsp + 0x70], r9
mov rbx, rcx
mov qword [rsp + 0x78], r14
lea r8d, [rsi + 0x20]
mov qword [rbp - 0x60], rsi
xor edx, edx
mov dword [rbp - 0x80], esi
lea rcx, [rbp]
mov qword [rsp + 0x68], rsi
mov edi, esi
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 0x140057e11
mov ecx, 0x80070057
mov r14d, ecx
jmp 0x1400587ea
test r13, r13
je 0x140057e04
test r14, r14
je 0x140057e04
mov r14, qword [0x1404379a0]
mov qword [rbp - 8], r14
lea rax, [r14 + 8]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140057e47
mov edx, 1
mov rcx, rax
call fcn.140073400
mov dword [rbp - 0x80], 1
mov rdx, r15
lea rcx, str.TimeBasedExtendedGrace
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14005806b
cmp qword [rbx + 0x10], rsi
jne 0x140057ecc
lea r9, [rsp + 0x40]
mov rdx, r12
lea r8, str.applicationId
call fcn.1400d3734
mov r14d, eax
test eax, eax
js 0x1400587e8
mov r15, qword [rsp + 0x40]
lea rdx, [rbp + 0x30]
mov rcx, r15
call fcn.140053408
mov r14d, eax
test eax, eax
jns 0x140057ea8
mov ecx, eax
call fcn.14007ab24
jmp 0x1400587f4
mov rcx, qword [rbp - 8]
lea r8, [rbp + 0x30]
mov r9, r12
mov dword [rsp + 0x20], 1
mov rdx, rbx
call fcn.1400d8790
mov r14d, eax
test eax, eax
jns 0x140057ed1
jmp 0x140057e9c
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140057ee5
mov r14d, 0xc004f002
mov ecx, r14d
jmp 0x140057e9e
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140053350
mov r14d, eax
test eax, eax
js 0x140057e9c
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140066f08
test al, al
jne 0x140057f17
mov r14d, 0xc004f012
jmp 0x140057ee0
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.140077a84
mov rsi, qword [rbp - 0x68]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp - 0x58]
mov rcx, rsi
lea rdx, str.TimeBasedConvertedToPerpetual
call rbx
mov r12d, 0x80070002
mov r14d, eax
cmp eax, r12d
jne 0x140058058
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp - 0x58]
mov rcx, rsi
lea rdx, str.TimeBasedExtendedGrace
call rbx
lea rdx, [0x1404344b4]
mov r14d, eax
lea rcx, [0x14040dd1c]
call fcn.1400ed4d4
cmp r14d, r12d
je 0x140057f0f
test r14d, r14d
js 0x140057ee0
cmp dword [rbp - 0x50], 2
je 0x140057fc0
mov r14d, 0xc004f01e
jmp 0x140057ee0
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 0x140057fec
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
jne 0x140058001
and qword [rsp + 0x68], rdi
mov r14d, 0x8007000e
jmp 0x140057ee0
mov rcx, qword [rbp - 0x48]
mov rdx, rbx
mov qword [rsp + 0x68], rbx
call fcn.140077bc0
mov r14d, eax
test eax, eax
jns 0x140058031
lea rdx, [0x140431bc8]
lea rcx, [0x140413ccc]
call fcn.1400ed188
jmp 0x140057ee0
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 0x1400587f4
test eax, eax
je 0x140057f0f
jns 0x1400587f4
jmp 0x140057ee0
mov rdx, r15
lea rcx, str.RearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140058171
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14005349c
mov r14d, eax
test eax, eax
js 0x1400587e8
mov r14, qword [0x140437a10]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403b8660]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
cmp dword [rsp + 0x48], 1
je 0x14005810a
mov ecx, 0x8000ffff
jmp 0x140057e09
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403b8660]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140053408
mov r14d, eax
test eax, eax
js 0x1400587e8
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.1400d2794
jmp 0x1400587e1
mov rdx, r15
lea rcx, str.RemainingRearmCount
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140058271
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14005349c
mov r14d, eax
test eax, eax
js 0x1400587e8
mov r14, qword [0x140437a10]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403b8660]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
cmp dword [rsp + 0x48], 1
jne 0x140058100
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403b8660]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140053408
mov r14d, eax
test eax, eax
js 0x1400587e8
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.1400d2b2c
jmp 0x1400587e1
mov rdx, r15
lea rcx, str.TrustedTime
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140058371
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14005349c
mov r14d, eax
test eax, eax
js 0x1400587e8
mov r14, qword [0x140437a10]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403b8660]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
cmp dword [rsp + 0x48], 1
jne 0x140058100
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403b8660]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140053408
mov r14d, eax
test eax, eax
js 0x1400587e8
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.1400d2574
jmp 0x1400587e1
mov rdx, r15
lea rcx, str.CustomerPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, [0x1403bf008]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.VLActivationInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.VLRenewalInterval
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.KeyManagementServiceName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.KeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.KeyManagementServiceLookupDomain
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
lea rdx, [0x140433da8]
lea rcx, [0x140415ca0]
call fcn.1400edb90
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServiceName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServiceIpAddress
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.DiscoveredKeyManagementServicePort
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.ADActivationObjectName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.ADActivationObjectDN
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.ADActivationCsvlkPID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.ADActivationCsvlkSkuID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.TokenActivationILID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.TokenActivationILVID
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.TokenActivationGrantNumber
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.TokenActivationCertThumbprint
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.TokenActivationAdditionalInfo
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.InheritedActivationId
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.InheritedActivationHostMachineName
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.InheritedActivationHostDigitalPid2
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.InheritedActivationActivationTime
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400586e1
mov rdx, r15
lea rcx, str.DigitalEncryptedPID
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140058616
lea r9, [rbp + 0x30]
mov r8, r15
mov rdx, r12
call fcn.1400d3734
mov r14d, eax
test eax, eax
jns 0x1400585cf
mov ecx, eax
call fcn.14007ab24
mov rdi, qword [rbp + 0x30]
jmp 0x1400587ef
mov rdi, qword [rbp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, 0x7fffffff
call fcn.140077ac0
mov r14d, eax
test eax, eax
js 0x1400587e8
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 0x1400587ef
lea rax, [0x140002b78]
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
jns 0x140058677
mov ecx, r14d
jmp 0x1400587ea
mov rax, qword [rbp - 0x70]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea rax, [0x14001f5b8]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rax
mov r8, r12
lea rax, [rbp - 0x78]
mov rcx, r15
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 0x14005866f
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 0x140058609
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14005349c
mov r14d, eax
test eax, eax
js 0x1400587e8
mov r14, qword [0x140437a10]
mov rax, qword [r14]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, r14
call rbx
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403b8660]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
cmp dword [rsp + 0x48], 1
jne 0x140058100
mov rbx, qword [rsp + 0x50]
lea rdx, [0x1404366d0]
lea rcx, [0x14042038c]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
call fcn.1400ed82c
mov rcx, r14
call qword [0x1403b8660]
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call r14
mov r14d, eax
test eax, eax
js 0x1400587e8
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
call fcn.140053408
mov r14d, eax
test eax, eax
js 0x1400587e8
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.1400d2ca8
mov r14d, eax
test eax, eax
jns 0x1400587ef
mov ecx, eax
call fcn.14007ab24
mov r15, qword [rsp + 0x40]
mov ecx, r14d
call fcn.14007ab44
test rsi, rsi
je 0x140058816
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403b8660]
mov rcx, rsi
call rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14005883b
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [0x1403b8660]
mov rcx, rbx
call rsi
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005884b
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x140058859
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp]
call fcn.140058990
lea rcx, [rbp - 0x70]
call fcn.1400588e4
test rdi, rdi
je 0x14005888c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140435a40]
lea rcx, [0x14040f44c]
call fcn.1400ebd6c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400588a2
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x68], 0
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x1400588b9
cmp dword [rbp - 0x80], 0
je 0x1400588b9
mov rcx, rax
call fcn.14007329c
mov eax, r14d
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14036e5e0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret