Function at 0x14004dafc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, rdx
mov rbx, rcx
lea rsi, [rcx + 0xf0]
mov qword [rsp + 0x30], rsi
xor r15d, r15d
cmp dword [rsi + 0x28], r15d
je 0x14004db4a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
movups xmm0, xmmword [0x14008bc60]
movdqu xmmword [rbx + 0x7c], xmm0
mov r14, qword [rdi]
test r14, r14
je 0x14004ddc0
mov rax, qword [rdi + 8]
mov qword [rbx + 0x48], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 0x60], rax
mov dword [rbx], 4
mov dword [rsp + 0x20], r15d
cmp dword [r14 + 4], r15d
jle 0x14004dc5b
lea rdi, [rbx + 0xa8]
lea r12, [r14 + 8]
mov esi, r15d
mov r15d, dword [r12]
mov dword [rsp + 0x20], r15d
mov rax, qword [rdi]
mov rcx, qword [rbx + 0xb0]
jmp 0x14004dbbc
cmp dword [rax], r15d
je 0x14004dc41
add rax, 4
cmp rax, rcx
jne 0x14004dbaf
mov r8d, r15d
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14004dc41
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14004dbf2
mov dword [rdx], r15d
add qword [rdi + 8], 4
jmp 0x14004dbff
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.14003e8ac
lea rcx, [rbx + 0xd8]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x14004dc1a
mov qword [rdx], r13
add qword [rcx + 8], 8
jmp 0x14004dc24
lea r8, [rsp + 0x28]
call fcn.140006600
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
sar rcx, 2
mov rax, qword [r12]
mov qword [rbx + rcx*8 + 0x144], rax
inc dword [rbx + 0x148]
inc esi
add r12, 8
cmp esi, dword [r14 + 4]
jl 0x14004db9a
lea rsi, [rbx + 0xf0]
xor r15d, r15d
call fcn.140011b6c
cmp qword [rax + 8], 1
jbe 0x14004dc7f
mov rdx, rbx
lea rcx, [0x14004a760]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, rbx
call fcn.14004d138
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x14004dcae
and qword [rsp + 0x20], rax
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x14004ddc0
mov dword [rbp - 0x59], 0x68
lea rdx, [rbp - 0x59]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov byte [rsp + 0x40], r15b
mov qword [rsp + 0x48], r15
mov eax, 0x60
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x40]
call fcn.140010174
nop
mov rdx, qword [rbx + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.14000fef0
mov dword [rbx + 0x128], eax
lea rax, [rbp - 0x31]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14004dd03
lea rdi, [rbx + 8]
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.1400022b0
movups xmm0, xmmword [rbp - 0x55]
movdqu xmmword [rbx + 0x30], xmm0
mov al, byte [rbp - 0x35]
and al, 1
mov byte [rbx + 0x28], al
mov dword [rbx + 0x144], 0x308
lea rdx, [rbx + 0xc0]
mov r8, qword [rbx + 0xa0]
mov rcx, rbx
call fcn.140049cc4
mov dword [rbx + 0x458], 1
mov eax, dword [rbx + 0x128]
mov dword [rbx + 0x46c], eax
movups xmm0, xmmword [rbx + 0x30]
movdqu xmmword [rbx + 0x45c], xmm0
movdqu xmmword [rbx + 0x470], xmm0
movups xmm0, xmmword [rbx + 0x30]
movdqu xmmword [rbx + 0x480], xmm0
cmp qword [rdi + 0x18], 8
jb 0x14004dd8e
mov rdi, qword [rdi]
lea rcx, [rbx + 0x490]
mov r8, rdi
mov edx, 0x40
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [rbx + 0xb0]
cmp qword [rbx + 0xa8], rax
setne bl
lea rcx, [rsp + 0x40]
call fcn.14000fe54
jmp 0x14004ddc3
mov bl, r15b
cmp dword [rsi + 0x28], r15d
je 0x14004ddd2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14007e630
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret