Function at 0x1400d2050
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa0
xor ebx, ebx
lea rcx, [0x1403a8b00]
and qword [rbp - 0x39], rbx
xor esi, esi
xor edi, edi
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rbx
mov r15, r9
mov qword [rbp - 0x41], rdi
mov r13, r8
mov r14d, edx
call fcn.14008fd2c
xor eax, eax
test r13, r13
jne 0x1400d20c5
mov r15d, 0x80070057
lea rdx, [0x140420208]
lea rcx, [0x140401658]
mov r14d, r15d
call fcn.1400e6a48
mov ecx, r15d
jmp 0x1400d2330
cmp qword [rbp + 0x7f], rax
jne 0x1400d20d6
mov r15d, 0x80070057
mov r14d, r15d
jmp 0x1400d20bd
cmp qword [rbp + 0x77], rax
jne 0x1400d20e1
test r15, r15
je 0x1400d20cb
mov dword [rsp + 0x28], eax
mov r9d, r14d
mov r8, r13
mov qword [rsp + 0x20], rax
mov edx, 8
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp + 0x67], eax
test eax, eax
jg 0x1400d2132
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d2119
mov r14d, 0x80004005
jmp 0x1400d212a
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
jmp 0x1400d2330
lea r8, [rbp + 0x57]
mov edx, 1
mov ecx, eax
call fcn.140077a14
lea rdx, [0x14041c1b8]
mov r14d, eax
lea rcx, [0x14040d73c]
call fcn.1400e6d84
lea rdx, [0x14041df04]
lea rcx, [0x14040787c]
call fcn.1400e63b8
test r14d, r14d
js 0x1400d212a
movsxd rdx, dword [rbp + 0x57]
lea r8, [rbp - 0x51]
call fcn.140076ed0
lea rdx, [0x14041a090]
mov r14d, eax
lea rcx, [0x140406234]
call fcn.1400e6704
test r14d, r14d
jns 0x1400d21a9
mov ecx, r14d
call fcn.140078308
mov rsi, qword [rbp - 0x51]
jmp 0x1400d2335
mov rsi, qword [rbp - 0x51]
mov r8, r13
mov r14d, dword [rbp + 0x67]
mov edx, 8
mov r9d, dword [rbp + 0x5f]
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r14d
je 0x1400d21e2
mov r14d, 0x8000ffff
jmp 0x1400d212a
lea r8, [rbp + 0x67]
mov rcx, rsi
lea rdx, [rbp - 0x49]
call fcn.1400c4178
mov r14d, eax
test eax, eax
jns 0x1400d2209
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp - 0x49]
jmp 0x1400d2335
and dword [rbp + 0x57], ebx
xor r14d, r14d
mov rbx, qword [rbp - 0x49]
mov r13d, dword [rbp + 0x67]
test r15, r15
je 0x1400d22af
and dword [rbp - 0x11], edi
lea rax, [0x14001a120]
mov qword [rbp - 0x29], rax
lea r8d, [r14 + 0x48]
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x31]
lea rax, [rbp - 0x39]
mov qword [rbp - 0x31], 3
mov qword [rbp + 7], rax
lea ecx, [r8 + 0x71]
lea rax, [rbp - 0x55]
mov qword [rbp - 0x19], r15
xor r9d, r9d
mov qword [rbp + 0xf], rax
mov dword [rbp - 1], r13d
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x59]
test r14d, r14d
js 0x1400d22af
mov r14, qword [rbp - 0x39]
lea rdx, [0x14041d9c4]
lea rcx, [0x1403ff168]
call fcn.1400e70c4
mov r15d, dword [rbp - 0x55]
xor ecx, ecx
call fcn.140078324
mov dword [rbp + 0x57], r15d
xor ecx, ecx
call fcn.140078324
test r14, r14
jne 0x1400d22fa
mov r14d, 0x8000ffff
cmp qword [rbp + 0x77], rdi
jne 0x1400d22bf
test r14d, r14d
jns 0x1400d2335
jmp 0x1400d212a
mov rcx, qword [rbp + 0x77]
lea rax, [rbp - 0x41]
lea r9, [rbp + 0x57]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, r13d
call fcn.1400da070
mov r14d, eax
test eax, eax
jns 0x1400d22ef
mov ecx, eax
call fcn.140078308
mov rdi, qword [rbp - 0x41]
jmp 0x1400d2335
mov rdi, qword [rbp - 0x41]
mov r15d, dword [rbp + 0x57]
mov r14, rdi
mov rax, qword [str.TokenValue:Empty]
cmp rax, qword [r14]
jne 0x1400d2318
mov rax, qword [0x1403afc88]
cmp rax, qword [r14 + 8]
jne 0x1400d2318
xor r14d, r14d
jmp 0x1400d2335
mov r9, qword [rbp + 0x7f]
mov r8, r14
mov edx, r15d
call fcn.1400d1f38
mov r14d, eax
test eax, eax
jns 0x1400d2335
mov ecx, eax
call fcn.140078308
mov edx, r14d
lea rcx, [0x1403a8af0]
call fcn.14008fc78
mov ecx, r14d
call fcn.140078324
lea rcx, [rbp - 0x39]
call fcn.14005a080
test rdi, rdi
je 0x1400d236e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x1400d2387
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x1400d23a8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
mov eax, r14d
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret