Function at 0x140059720
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
xorps xmm0, xmm0
mov qword [rbp - 0x39], rsi
lea r8d, [rsi + 0x30]
mov qword [rbp - 0x21], rsi
xor edx, edx
lea rcx, [rbp - 0x39]
mov r13, r9
mov r12d, esi
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 0x14005979e
mov ecx, 0x80070057
mov esi, ecx
call fcn.1400790f8
jmp 0x1400599d5
test rbx, rbx
je 0x14005978d
test r13, r13
je 0x14005978d
mov rbx, qword [0x14042eab0]
mov edi, 1
lea r12, [rbx + 8]
test r12, r12
je 0x1400597ca
mov edx, edi
mov rcx, r12
call fcn.140071b04
mov dword [rbp - 0x61], edi
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 0x1400597f2
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
jmp 0x1400597f5
mov r14, rsi
lea rdx, [0x140429d34]
lea rcx, [0x140414074]
call fcn.1400e9e10
mov qword [rbp - 0x49], r14
test r14, r14
jne 0x14005981d
mov esi, 0x8007000e
mov ecx, esi
jmp 0x140059794
mov rcx, r14
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x140059861
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
lea rdx, [0x1404286a8]
mov ebx, eax
lea rcx, [0x14040a818]
call fcn.1400e8a6c
movzx esi, bx
mov eax, 0x80004005
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
test esi, esi
cmovns esi, eax
jmp 0x140059816
lea rax, [0x140049678]
mov dword [rbp - 0x4d], 0x10000
mov qword [rbp - 1], rax
lea rdx, [0x140426c9c]
lea rax, [rbp - 0x51]
mov qword [rbp - 0x19], r15
mov qword [rbp + 7], rax
lea rcx, [0x140411378]
lea rax, [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp + 0xf], rax
mov qword [rbp - 9], 3
call fcn.1400ea158
xor r9d, r9d
lea rax, [rbp - 0x41]
lea rdx, [rbp - 9]
mov qword [rbp + 0x17], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rbp - 0x51]
test esi, esi
js 0x140059816
mov rbx, qword [rbp - 0x41]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa8]
mov rcx, rdi
call qword [0x1403af620]
mov rdx, qword [rbp + 0x6f]
lea r8, [rbp - 0x69]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
jns 0x1400598ff
mov ecx, eax
jmp 0x140059794
mov edx, 1
lea r9, [rbp - 0x4d]
lea rcx, [rbp - 0x59]
lea r8d, [rdx + 3]
call fcn.140053a10
mov esi, eax
test eax, eax
js 0x1400598f8
mov edx, 2
lea rcx, [rbp - 0x59]
mov r9, r14
lea r8d, [rdx + 0xe]
call fcn.140053a10
mov esi, eax
test eax, eax
js 0x1400598f8
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp + 0x6f]
mov r8d, 0x7fffffff
call fcn.140076178
mov esi, eax
test eax, eax
js 0x1400598f8
mov r9, qword [rbp - 0x69]
lea rcx, [rbp - 0x59]
mov r8d, dword [rbp + 0x6f]
mov edx, 3
call fcn.140053a10
mov esi, eax
test eax, eax
js 0x1400598f8
mov r8, qword [rbp + 0x77]
lea rcx, [rbp - 0x59]
mov rdx, r13
call fcn.14005396c
mov esi, eax
test eax, eax
js 0x1400598f8
mov rbx, qword [r15 + 0x30]
test rbx, rbx
je 0x1400599a2
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 [rbp - 0x49], 0
mov rbx, qword [r15 + 0x38]
mov qword [r15 + 0x30], r14
test rbx, rbx
je 0x1400599c8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x69]
and qword [rbp - 0x69], 0
mov qword [r15 + 0x38], rax
mov ecx, esi
call fcn.140079118
lea rcx, [rbp - 0x69]
call fcn.140059b28
lea rcx, [rbp - 0x49]
call fcn.140059a7c
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x140059a32
mov rax, qword [rbx]
lea rdx, [0x140426730]
lea rcx, [0x140408e10]
mov rdi, qword [rax + 0x10]
call fcn.1400ea4ac
mov rcx, rdi
call qword [0x1403af620]
lea rdx, [0x14042df14]
lea rcx, [0x140409b38]
call fcn.1400ea7f4
mov rcx, rbx
call rdi
lea rcx, [rbp - 0x39]
call fcn.140057570
lea rcx, [rbp - 0x41]
call fcn.1400574c4
test r12, r12
je 0x140059a57
cmp dword [rbp - 0x61], 0
je 0x140059a57
mov rcx, r12
call fcn.1400719a0
mov rbx, qword [rsp + 0xf0]
mov eax, esi
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret