Function at 0x18007ac10
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov rax, qword [0x1802e8038]
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, [0x18007af80]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
je 0x18007ac74
nop
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x6c]
lea rcx, [0x18007af80]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
jne 0x18007ac50
lea rcx, [0x1802b1d88]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18007ac8a
xor edi, edi
jmp 0x18007ac9d
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [0x1802b1d88]
mov qword [rsp + 0xb8], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18007acbc
xor r13d, r13d
jmp 0x18007accf
lea rdx, str.NtDuplicateObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, [0x1802b1d88]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18007acee
xor r15d, r15d
jmp 0x18007ad01
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 0x18007ad69
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 0x18007ad40
test eax, eax
jns 0x18007ad85
lea rdx, str.NtQuerySystemInformation_failed_
mov ecx, 3
call fcn.18007a580
xor al, al
jmp 0x18007af47
mov qword [rsp + 0xb0], rbp
xor ebx, ebx
mov qword [rsp + 0xc0], r14
mov ebp, ebx
xor r14b, r14b
cmp dword [rsi], ebx
jbe 0x18007af21
test r14b, r14b
jne 0x18007af1c
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 0x18007af12
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 0x18007ae39
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18007af12
cmp dword [rsp + 0x58], 0x12019f
jne 0x18007ae5c
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 0x18007af12
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 0x18007aec0
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 0x18007aef3
movups xmm0, xmmword [rbx]
movd eax, xmm0
movups xmmword [rsp + 0x48], xmm0
test ax, ax
je 0x18007aef3
mov rcx, qword [rsp + 0x50]
lea rdx, str.DeviceHoYoProtect
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18007aef3
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 0x18007ada4
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.180115350
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret