Function at 0x18006b4c0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov rax, qword [0x1802d4040]
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, [0x18006b820]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
je 0x18006b524
nop
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x6c]
lea rcx, [0x18006b820]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
jne 0x18006b500
lea rcx, [0x1802a22a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18006b53a
xor edi, edi
jmp 0x18006b54d
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [0x1802a22a8]
mov qword [rsp + 0xb8], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18006b56c
xor r13d, r13d
jmp 0x18006b57f
lea rdx, str.NtDuplicateObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, [0x1802a22a8]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18006b59e
xor r15d, r15d
jmp 0x18006b5b1
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 0x18006b619
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 0x18006b5f0
test eax, eax
jns 0x18006b635
lea rdx, str.NtQuerySystemInformation_failed_
mov ecx, 3
call fcn.18006aad0
xor al, al
jmp 0x18006b7eb
mov qword [rsp + 0xb0], rbp
xor ebx, ebx
mov qword [rsp + 0xc0], r14
mov ebp, ebx
xor r14b, r14b
cmp dword [rsi], ebx
jbe 0x18006b7c5
test r14b, r14b
jne 0x18006b7c0
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 0x18006b7b6
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 0x18006b6e9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18006b7b6
cmp dword [rsp + 0x58], 0x12019f
jne 0x18006b70c
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 0x18006b7b6
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 0x18006b770
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 0x18006b797
cmp word [rbx], 0
je 0x18006b797
mov rcx, qword [rbx + 8]
lea rdx, str.DeviceHoYoProtect
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18006b797
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 0x18006b654
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.180118530
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret