Function at 0x140104480
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov r12d, 0xffff
mov qword [r11 - 0x10], r14
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov r14d, r15d
cmp byte [0x1402bfd18], r14b
je 0x14010458b
mov eax, dword [0x1402c2854]
lea ecx, [r15 + 0x17]
mov rdx, qword [0x1402c2940]
xor r9d, r9d
lea r8d, [rax + rax*2]
shl r8d, 3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [0x1402c2854]
mov rdi, qword [0x1402c2940]
test eax, eax
jns 0x140104510
lea r8, [rbx + rbx*2]
xor edx, edx
shl r8, 3
mov rcx, rdi
call fcn.1401dff50
mov rdx, r15
mov r8, r15
cmp ebx, 2
jb 0x14010456b
lea eax, [rbx - 2]
shr eax, 1
lea rcx, [rdi + 0x1c]
inc eax
mov r9d, eax
lea r11d, [rax + rax]
lea r10, [rax + rax]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rcx - 0x18]
lea rcx, [rcx + 0x30]
add rdx, rax
mov eax, dword [rcx - 0x30]
add r8, rax
sub r9, 1
jne 0x140104540
cmp r11d, ebx
jb 0x140104572
lea rax, [rdx + r8]
movzx edx, word [0x1402bfd1c]
jmp 0x1401046fd
test ebx, ebx
je 0x14010457b
mov r10, r15
lea rax, [r10 + r10*2]
mov r14d, dword [rdi + rax*8 + 4]
lea rax, [rdx + r8]
movzx edx, word [0x1402bfd1c]
jmp 0x1401046fd
movzx edx, word [0x1402bfd1c]
movzx esi, r15w
mov rbp, qword [0x1402c2940]
mov word [rsp + 0x30], r15w
cmp r15w, dx
jae 0x14010468f
movzx eax, r15w
movzx r8d, r15w
movzx r9d, r15w
nop dword [rax]
mov rcx, qword [0x1402bfd20]
test rcx, rcx
je 0x1401045ff
movzx ebx, r15w
cmp ax, r12w
jne 0x1401045ef
cmp r15w, dx
jae 0x140104606
movzx eax, dx
nop
add bx, word [rcx]
lea rcx, [rcx + 2]
sub rax, 1
jne 0x1401045e0
jmp 0x140104606
cmp r8w, dx
jae 0x140104606
movzx eax, r9w
movzx ebx, word [rcx + rax*2]
jmp 0x140104606
movzx ebx, word [0x1402bfd1a]
movzx eax, si
lea rdx, [rsp + 0x30]
mov r8d, 2
mov qword [rsp + 0x28], r15
lea rcx, [rax + rax*2]
movzx eax, bx
lea rdi, [rcx*8]
lea r9, [rdi + rbp]
lea ecx, [rax + rax*2]
shl ecx, 3
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 0x15]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov rbp, qword [0x1402c2940]
test eax, eax
jns 0x140104667
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.1401dff50
movzx eax, word [rsp + 0x30]
add si, bx
movzx edx, word [0x1402bfd1c]
inc ax
mov word [rsp + 0x30], ax
movzx r8d, ax
movzx r9d, ax
cmp ax, dx
jb 0x1401045c0
mov ebx, dword [0x1402c2854]
mov r8, r15
mov r9, r15
cmp ebx, 2
jb 0x1401046dc
lea eax, [rbx - 2]
shr eax, 1
lea rcx, [rbp + 0x1c]
inc eax
mov r10d, eax
lea edi, [rax + rax]
lea r11, [rax + rax]
nop word [rax + rax]
mov eax, dword [rcx - 0x18]
lea rcx, [rcx + 0x30]
add r8, rax
mov eax, dword [rcx - 0x30]
add r9, rax
sub r10, 1
jne 0x1401046c0
cmp edi, ebx
jb 0x1401046f0
jmp 0x1401046f9
nop dword [rax]
test ebx, ebx
je 0x1401046f9
mov r11, r15
nop word [rax + rax]
lea rax, [r11 + r11*2]
mov r14d, dword [rbp + rax*8 + 4]
lea rax, [r9 + r8]
mov ecx, dword [0x1402c4ba8]
add r14, rax
mov eax, ecx
sub eax, dword [0x1402c2920]
mov dword [0x1402c2924], eax
mov dword [0x1402c2920], ecx
mov ecx, dword [0x1402c4c28]
mov eax, ecx
sub eax, dword [0x1402c2838]
mov dword [0x1402c283c], eax
mov rax, r14
sub rax, qword [0x1402c2978]
mov qword [0x1402c2980], rax
mov dword [0x1402c2838], ecx
mov ecx, dword [0x1402c4bb4]
mov eax, ecx
sub eax, dword [0x1402c2960]
cmp byte [0x1402bfd18], r15b
mov qword [0x1402c2978], r14
mov r14, qword [rsp + 0x48]
mov dword [0x1402c2964], eax
mov dword [0x1402c2960], ecx
je 0x1401047bc
mov r9, qword [0x1402c2930]
lea eax, [rbx + rbx*2]
xor edx, edx
shl eax, 3
xor r8d, r8d
mov dword [rsp + 0x20], eax
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jns 0x1401048a9
mov eax, dword [0x1402c2854]
xor edx, edx
mov rcx, qword [0x1402c2930]
lea r8, [rax + rax*2]
shl r8, 3
call fcn.1401dff50
jmp 0x1401048a9
mov word [rsp + 0x34], r15w
movzx esi, r15w
cmp r15w, dx
jae 0x1401048a9
mov rbp, qword [0x1402c2930]
movzx ecx, r15w
movzx r8d, r15w
movzx r9d, r15w
mov rax, qword [0x1402bfd20]
test rax, rax
je 0x140104822
movzx ebx, r15w
cmp cx, r12w
jne 0x140104811
cmp r15w, dx
jae 0x140104829
movzx ecx, dx
add bx, word [rax]
lea rax, [rax + 2]
sub rcx, 1
jne 0x140104802
jmp 0x140104829
cmp r8w, dx
jae 0x140104829
movzx ecx, r9w
movzx ebx, word [rax + rcx*2]
jmp 0x140104829
movzx ebx, word [0x1402bfd1a]
movzx eax, si
lea rdx, [rsp + 0x34]
mov r8d, 2
lea rcx, [rax + rax*2]
movzx eax, bx
lea rdi, [rcx*8]
lea r9, [rdi + rbp]
lea ecx, [rax + rax*2]
shl ecx, 3
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 0x2c]
call qword [sym.imp.ntdll.dll_NtPowerInformation]
mov rbp, qword [0x1402c2930]
test eax, eax
jns 0x14010487f
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.1401dff50
movzx ecx, word ds:[rsp + 0x34]
add si, bx
movzx edx, word [0x1402bfd1c]
inc cx
mov word [rsp + 0x34], cx
movzx r8d, cx
movzx r9d, cx
cmp cx, dx
jb 0x1401047e3
mov r8, qword [0x1402c2848]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
test r8, r8
je 0x1401048dd
mov rcx, qword [0x1402bfe50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x1402c2968]
mov qword [0x1402c2848], rax
mov qword [0x1402c2968], r15
call fcn.140107720
mov eax, dword [0x1402c2910]
mov r15, qword [rsp + 0x40]
cmp eax, 2
jae 0x14010490f
inc eax
mov dword [0x1402c2910], eax
call fcn.140106500
call fcn.140106640
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x58
ret