Function at 0xbeef9590
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push r12
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xf8
xor r12d, r12d
lea r9, [rbp + 0x6f]
movzx r14d, r8b
mov dword [rbp + 0x6f], r12d
mov r15, rcx
lea rdx, [rbp - 0x49]
mov r8d, 0x80
lea ecx, [r12 + 0x40]
call qword [0xbef017a8]
mov ecx, dword [rbp + 0x6f]
mov eax, dword [rbp - 0x49]
mov qword [rbp - 0x71], r12
lea rdx, [rax + rax*4]
mov eax, ecx
lea rdx, [rdx*8 + 0x10]
cmp rcx, rdx
cmovbe rax, rdx
add rax, 0x1000
mov qword [rbp - 0x61], rax
test ecx, ecx
je 0xbeef98af
mov rax, qword [0xbef01718]
lea r9, [rbp - 0x61]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0x71]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rcx, [r12 - 1]
call rax
test eax, eax
jne 0xbeef98af
mov r8d, dword [rbp - 0x61]
lea r9, [rbp + 0x6f]
mov rdx, qword [rbp - 0x71]
lea ecx, [rax + 0x40]
mov qword [rsp + 0x130], rsi
call qword [0xbef017a8]
mov rdx, qword [rbp - 0x71]
mov esi, r12d
cmp qword [rdx], rsi
jbe 0xbeef9888
mov qword [rsp + 0xf0], rdi
mov r8d, r12d
mov qword [rsp + 0x120], rbx
mov ecx, dword [rbp + 0x6f]
lea rax, [r8 + r8*4]
cmp qword [rbp - 0x61], rcx
lea rdi, [rax*8]
lea rax, [rdi + 0x38]
cmovb rcx, qword [rbp - 0x61]
cmp rax, rcx
ja 0xbeef9878
mov rcx, qword [rdi + rdx + 0x18]
mov eax, dword [0xbef01670]
cmp rcx, rax
je 0xbeef986a
mov eax, dword [0xbef017c8]
cmp rcx, rax
je 0xbeef986a
mov eax, dword [0xbef01708]
cmp rcx, rax
je 0xbeef986a
mov eax, dword [0xbef01674]
cmp rcx, rax
je 0xbeef986a
cmp r15, qword [rdi + rdx + 0x10]
jne 0xbeef986a
test dword [rdi + rdx + 0x28], 0x83a
je 0xbeef986a
xor eax, eax
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x51], rax
lea r9, [rbp - 0x59]
mov rax, qword [0xbef01770]
lea r8, [0xbeefe0d0]
mov edx, 0x40
lea rcx, [rbp - 0x79]
call rax
test eax, eax
jne 0xbeef9760
mov rdx, qword [rbp - 0x71]
xor r9d, r9d
mov rax, qword [0xbef016d8]
xor r8d, r8d
mov rcx, qword [rbp - 0x79]
mov dword [rsp + 0x30], 3
mov rdx, qword [rdi + rdx + 0x20]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call rax
mov rcx, qword [rbp - 0x79]
mov ebx, eax
call qword [0xbef01d68]
cmp ebx, 0xc0000022
jne 0xbeef9866
mov rax, qword [0xbef01770]
lea r9, [rbp - 0x59]
lea r8, [0xbeefe0d0]
mov edx, 0x400
lea rcx, [rbp - 0x79]
call rax
test eax, eax
je 0xbeef97a6
mov rax, qword [0xbef01770]
lea r9, [rbp - 0x59]
lea r8, [0xbeefe0d0]
mov edx, 0x1000
lea rcx, [rbp - 0x79]
call rax
test eax, eax
jne 0xbeef9866
mov rax, qword [0xbef01788]
lea r8, [rbp + 0x7f]
mov rcx, qword [rbp - 0x79]
mov r9d, 4
mov qword [rsp + 0x20], r12
lea edx, [r9 + 0x14]
call rax
mov ecx, dword [rbp + 0x7f]
lea r8, [rbp - 0x69]
test eax, eax
mov qword [rsp + 0x20], r12
mov rax, qword [0xbef01788]
mov r9d, 4
cmovne ecx, r12d
mov dword [rbp + 0x7f], ecx
mov rcx, qword [rbp - 0x79]
lea edx, [r9 + 0x19]
call rax
mov ecx, dword [rbp - 0x69]
test eax, eax
cmovne ecx, r12d
mov dword [rbp - 0x69], ecx
mov rcx, qword [rbp - 0x79]
call qword [0xbef01d68]
cmp dword [rbp + 0x7f], r12d
je 0xbeef9866
cmp dword [rbp - 0x69], r12d
jne 0xbeef9866
mov rax, qword [0xbef01770]
lea r9, [rbp - 0x59]
lea r8, [0xbeefe0d0]
mov edx, 1
lea rcx, [rbp - 0x79]
call rax
test eax, eax
jne 0xbeef984b
mov rcx, qword [rbp - 0x79]
xor edx, edx
call qword [0xbef01660]
mov rcx, qword [rbp - 0x79]
call qword [0xbef01d68]
test r14b, r14b
je 0xbeef9866
mov rdx, qword [rbp - 0x71]
lea rcx, [0xbeef9470]
mov rdx, qword [rdi + rdx + 0x18]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdx, qword [rbp - 0x71]
inc esi
mov r8d, esi
cmp r8, qword [rdx]
jb 0xbeef9670
mov rbx, qword [rsp + 0x120]
mov rdi, qword [rsp + 0xf0]
mov r9d, 0x8000
mov qword [rbp - 0x61], r12
lea r8, [rbp - 0x61]
mov rcx, 0xffffffffffffffff
lea rdx, [rbp - 0x71]
call qword [0xbef017f0]
mov rsi, qword [rsp + 0x130]
add rsp, 0xf8
pop r15
pop r14
pop r12
pop rbp
ret