Function at 0x180036780
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x400
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov rdi, rcx
mov qword [r11 - 0x368], rcx
xor ebx, ebx
mov dword [rsp + 0x60], ebx
call fcn.180003c30
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x170], ebx
xor edx, edx
lea r8d, [rbx + 0x78]
lea rcx, [rsp + 0x174]
call fcn.1800cc600
lea rcx, [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
mov edx, ebx
test eax, eax
sete dl
test edx, edx
je 0x18003680d
lea rcx, str.GetCurrentHwProfile___failed._Error_code:__d_n
call fcn.1800ca47c
mov r9d, 0x7c
lea r8, [rsp + 0x170]
xor edx, edx
mov rcx, rdi
call fcn.18003b7c0
mov rcx, rdi
call fcn.180007e90
mov rcx, rdi
call fcn.180007e90
mov rcx, rdi
call fcn.180002b30
mov dword [rsp + 0x68], ebx
xor edx, edx
lea r8d, [rdx + 0x2c]
lea rcx, [rsp + 0x6c]
call fcn.1800cc600
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov qword [rsp + 0x70], reloc.WS2_32.dll_WSAGetLastError
mov qword [rsp + 0x78], reloc.WS2_32.dll_WSAGetLastError
movzx eax, word [rsp + 0x96]
movzx ecx, word [rsp + 0x94]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAGetLastError
mov r9d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x68]
lea rdx, str._d__d__d__d__d__d__d__d__d__u
lea rcx, [rsp + 0x1f0]
call fcn.1800ca8e4
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x148]
call fcn.180002ab0
nop
lea rdx, [rsp + 0x148]
mov rcx, rdi
call fcn.180008770
lea rcx, [rsp + 0x120]
call fcn.180003c30
nop
lea rcx, [rsp + 0x120]
call fcn.1800356f0
lea rdx, [rsp + 0x120]
mov rcx, rdi
call fcn.180008770
mov rcx, rdi
call fcn.180007e90
mov rcx, rdi
call fcn.180007e90
mov rcx, rdi
call fcn.180002b30
lea rcx, [rsp + 0xa8]
call fcn.180003c30
nop
lea rcx, [rsp + 0xa8]
call fcn.180035890
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.180008770
lea rcx, [rsp + 0xa8]
call fcn.180002b30
lea rcx, [rsp + 0xf8]
call fcn.180003c30
nop
lea rcx, [rsp + 0xd0]
call fcn.180003c30
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xf8]
call fcn.1800365c0
lea rdx, [rsp + 0xf8]
mov rcx, rdi
call fcn.180008770
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call fcn.180008770
lea rcx, [rsp + 0xf8]
call fcn.180002b30
lea rcx, [rsp + 0xd0]
call fcn.180002b30
mov rcx, rdi
call fcn.180007e90
mov rcx, rdi
call fcn.180007e90
test rax, rax
je 0x180036a29
mov rsi, rbx
cmp rsi, qword [rdi + 0x18]
jbe 0x180036a0f
call fcn.1800caf8c
mov rcx, rdi
call fcn.180003090
inc ebx
movsxd rsi, ebx
mov rcx, rdi
call fcn.180007e90
cmp rsi, rax
jb 0x180036a04
lea rcx, [rsp + 0xd0]
call fcn.180002b10
nop
lea rcx, [rsp + 0xf8]
call fcn.180002b10
nop
lea rcx, [rsp + 0xa8]
call fcn.180002b10
nop
lea rcx, [rsp + 0x120]
call fcn.180002b10
nop
lea rcx, [rsp + 0x148]
call fcn.180002b10
mov rax, rdi
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret