Function at 0x140053090
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
mov word [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x72]
call fcn.1400b57e0
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140053111
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140053108
mov rcx, rax
call fcn.140050830
jmp 0x14005310a
xor eax, eax
mov qword [0x1401370f0], rax
lea rdx, str.FindInstallSection__
mov rcx, rax
call fcn.140050c00
lea rbx, [rsi + 0x20]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x140053348
lea r9, [rsi + 8]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x140053163
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140053348
mov qword [rsp + 0x20], 0
mov r9d, 0x100
lea r8, [rsp + 0x70]
mov edx, 1
lea rcx, [rsi + 8]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x140053195
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140053348
lea r8, [rsi + 0x220]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1400531eb
lea r9, [rsi + 8]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x14005320f
lea r9, [rsi + 8]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x14005320f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140053348
lea r9, [rsi + 8]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x14005320f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140053348
mov qword [rsp + 0x20], 0
mov r9d, 0x100
lea r8, [rsp + 0x70]
mov edx, 1
lea rcx, [rsi + 8]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x140053241
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140053348
mov rdi, qword [rsi + 0x430]
mov word [rbx], 0
lea r8, [rsp + 0x70]
mov edx, 0x100
mov rcx, rbx
call fcn.1400b1b70
lea r9, [rsi + 8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x14005327d
xor eax, eax
jmp 0x140053348
call fcn.14004efd0
test eax, eax
je 0x14005330e
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x40]
cmp cx, 9
jne 0x1400532d4
test rbx, rbx
je 0x1400532b9
lea r8, str..NTamd64
mov edx, 0x100
mov rcx, rbx
call fcn.1400b2160
lea r9, [rsi + 8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140053342
xor eax, eax
jmp 0x140053348
cmp cx, 6
jne 0x140053342
test rbx, rbx
je 0x1400532f3
lea r8, str..NTia64
mov edx, 0x100
mov rcx, rbx
call fcn.1400b2160
lea r9, [rsi + 8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140053342
xor eax, eax
jmp 0x140053348
test rbx, rbx
je 0x140053327
lea r8, str..NTx86
mov edx, 0x100
mov rcx, rbx
call fcn.1400b2160
lea r9, [rsi + 8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140053342
xor eax, eax
jmp 0x140053348
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b09d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret