Function at 0x180077160
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov rax, qword [0x1802dd038]
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, [0x1800774c0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
je 0x1800771c4
nop
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x6c]
lea rcx, [0x1800774c0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x6c], 0
jne 0x1800771a0
lea rcx, [0x1802aa678]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800771da
xor edi, edi
jmp 0x1800771ed
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [0x1802aa678]
mov qword [rsp + 0xb8], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18007720c
xor r13d, r13d
jmp 0x18007721f
lea rdx, str.NtDuplicateObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, [0x1802aa678]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18007723e
xor r15d, r15d
jmp 0x180077251
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 0x1800772b9
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 0x180077290
test eax, eax
jns 0x1800772d5
lea rdx, str.NtQuerySystemInformation_failed_
mov ecx, 3
call fcn.180076af0
xor al, al
jmp 0x18007748b
mov qword [rsp + 0xb0], rbp
xor ebx, ebx
mov qword [rsp + 0xc0], r14
mov ebp, ebx
xor r14b, r14b
cmp dword [rsi], ebx
jbe 0x180077465
test r14b, r14b
jne 0x180077460
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 0x180077456
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 0x180077389
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180077456
cmp dword [rsp + 0x58], 0x12019f
jne 0x1800773ac
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 0x180077456
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 0x180077410
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 0x180077437
cmp word [rbx], 0
je 0x180077437
mov rcx, qword [rbx + 8]
lea rdx, str.DeviceHoYoProtect
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180077437
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 0x1800772f4
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.18011b790
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret