Function at 0x140004790
Capabilities:
Get system information on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor edx, edx
xor ecx, ecx
call sub.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx
test eax, eax
js 0x140004b2a
xorps xmm0, xmm0
mov qword [rsp + 0x250], rbx
lea rcx, [rbp - 0x70]
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x50], 4
jb 0x140004b00
lea rax, [rsp + 0x48]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x48], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HARDWAREACPIDSDTVBOX__
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14000484b
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionContainerNameWOW64
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000485b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140004b00
call fcn.140005a80
test al, al
jne 0x140004b00
call fcn.140005ca0
test al, al
jne 0x140004b00
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
lea rcx, [0x14000a268]
call qword [sym.imp.dxgi.dll_CreateDXGIFactory]
test eax, eax
js 0x140004b00
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
js 0x1400048cd
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x30]
test eax, eax
mov rax, qword [rcx]
jns 0x1400048dd
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140004b00
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, dword [rbp + 0x100]
cmp eax, 0x10de
je 0x140004903
cmp eax, 0x1002
jne 0x140004b00
call fcn.140003d00
xorps xmm0, xmm0
lea rdx, str.gJtAJWUCQP1g5_D2AxvpxntOKLGCxgJKKuxjSnSyOtMXxpOkgHiS_gYP7s40H28q6cGnxKIEAEsVXEAN4yWW0eLgsqrLC_metVkCUKSOfvJuLWUVZlyYkX83ws0
xorps xmm1, xmm1
lea rcx, [rbp - 0x20]
mov r8d, 0x80
movups xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x10], xmm1
call fcn.140002200
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call section..text
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14000497d
mov rcx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004978
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007d2c
cmp qword [rbp - 0x28], 8
lea rcx, [rbp - 0x40]
mov edx, dword [rbp - 0x30]
cmovae rcx, qword [rbp - 0x40]
test edx, edx
jne 0x140004999
mov qword [rsp + 0x70], rbx
jmp 0x1400049c0
cmp word [rcx + rdx*2], bx
je 0x1400049a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
lea rax, [rsp + 0x78]
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x7c], edx
mov qword [rbp - 0x78], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lock inc qword [0x14000f7d8]
mov rcx, qword [0x14000f7d0]
test rcx, rcx
je 0x140004a0f
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x140004b32
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
lock dec qword [0x14000f7d8]
jmp 0x140004a26
lock dec qword [0x14000f7d8]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
call fcn.1400052e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
lock inc qword [0x14000f7b8]
mov rcx, qword [0x14000f7b0]
test rcx, rcx
je 0x140004a75
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rbx
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
js 0x140004b22
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
lock dec qword [0x14000f7b8]
jmp 0x140004a8c
lock dec qword [0x14000f7b8]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
call fcn.140005160
lea rcx, [rsp + 0x30]
call fcn.140004b40
cmp qword [rsp + 0x30], rbx
je 0x140004aa7
lea rcx, [rsp + 0x30]
call fcn.140002890
cmp qword [rsp + 0x40], rbx
je 0x140004ab8
lea rcx, [rsp + 0x40]
call fcn.140002890
call fcn.140004290
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140004b00
mov rcx, qword [rbp - 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004afb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004afb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007d2c
mov rbx, qword [rsp + 0x250]
xor eax, eax
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140007ce0
add rsp, 0x240
pop rbp
ret
mov ecx, eax
call fcn.140003970
int3
mov ecx, eax
call fcn.140003970
int3
mov ecx, eax
call fcn.140003970
int3