Function at 0x180033450
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov rax, qword [0x1808c4020]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x6c]
mov dword [rsp + 0x6c], eax
lea rcx, [0x1800337b0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
je 0x1800334b4
nop
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x6c]
lea rcx, [0x1800337b0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
jne 0x180033490
lea rcx, [0x180887bf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800334ca
xor edi, edi
jmp 0x1800334dd
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [0x180887bf8]
mov qword [rsp + 0xb8], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800334fc
xor r13d, r13d
jmp 0x18003350f
lea rdx, str.NtDuplicateObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, [0x180887bf8]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18003352e
xor r15d, r15d
jmp 0x180033541
lea rdx, str.NtQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov ebx, 0x10000
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
mov qword [rsp + 0x40], rax
mov r12, rax
lea ecx, [r9 + 0x10]
call rdi
cmp eax, 0xc0000004
jne 0x1800335a9
nop word [rax + rax]
lea ecx, [rbx + rbx]
mov ebx, ecx
mov edx, ecx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rsi, rax
lea ecx, [r9 + 0x10]
call rdi
cmp eax, 0xc0000004
je 0x180033580
test eax, eax
jns 0x1800335c5
lea rdx, str.NtQuerySystemInformation_failed_
mov ecx, 3
call fcn.180032bf0
xor al, al
jmp 0x18003377b
mov qword [rsp + 0xb0], rbp
xor ebx, ebx
mov qword [rsp + 0xc0], r14
mov ebp, ebx
xor r14b, r14b
cmp dword [rsi], ebx
jbe 0x180033755
test r14b, r14b
jne 0x180033750
mov eax, ebp
mov qword [rsp + 0x60], rbx
lea rcx, [rax + rax*2]
movups xmm1, xmmword [rsi + rcx*8 + 8]
movsd xmm0, qword [rsi + rcx*8 + 0x18]
pextrw r12d, xmm1, 3
movsd qword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], ebx
mov r8, rax
mov dword [rsp + 0x28], ebx
mov edx, r12d
mov dword [rsp + 0x20], ebx
call r13
test eax, eax
js 0x180033746
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x60]
mov r9d, 0x1000
mov r8, rax
mov qword [rsp + 0x20], rbx
mov edx, 2
mov rdi, rax
call r15
test eax, eax
jns 0x180033679
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180033746
cmp dword [rsp + 0x58], 0x12019f
jne 0x18003369c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180033746
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x60]
mov r9d, 0x1000
mov rbx, rax
mov edx, 1
lea rax, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x20], rax
call r15
test eax, eax
jns 0x180033700
mov edx, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r9d, dword [rsp + 0x68]
mov edx, 1
mov rcx, qword [rsp + 0x60]
mov r8, rax
mov rbx, rax
mov qword [rsp + 0x20], 0
call r15
test eax, eax
js 0x180033727
cmp word [rbx], 0
je 0x180033727
mov rcx, qword [rbx + 8]
lea rdx, str.DeviceHoYoProtect
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180033727
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14b, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebp
cmp ebp, dword [rsi]
jb 0x1800335e4
mov r12, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xb0]
movzx eax, r14b
mov r14, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
mov r13, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800cb790
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret