Function at 0x140053b70
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14035d8c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x28], 0
je 0x140053db2
cmp qword [rcx + 0x18], 0
je 0x140053db2
cmp qword [rcx + 0x30], 0
je 0x140053db2
cmp qword [rcx + 0x20], 0
je 0x140053db2
mov byte [rbp - 0x60], 1
lea rcx, [rbp - 0x58]
call fcn.140015830
nop
lea rax, [0x1402f8eb8]
lea rdx, [0x1402f06c8]
cmp byte [rbp - 0x60], 0
cmovne rdx, rax
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140053c01
mov r8d, eax
lea rcx, [rbp - 0x58]
call fcn.140002a7c
mov r14, qword [rbp - 0x58]
mov r9, r14
xor r8d, r8d
mov edx, 0x116fb
mov rcx, qword [rbx]
call fcn.14001fd40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x50], eax
xor r15d, r15d
mov qword [rbp - 0x48], r15
lea rdx, [rbp - 0x50]
lea rcx, [0x140053b00]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140053d60
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x140053d60
mov dword [rbp - 0x38], 0x10028
mov dword [rbp - 0x34], 0x25
mov qword [rbp - 0x30], 0x1800
mov dword [rbp - 0x28], r15d
mov qword [rbp - 0x24], 0x20000000
mov qword [rbp - 0x1c], r15
mov dword [rbp - 0x14], r15d
lea rdx, [rbp - 0x38]
mov rcx, rax
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
test eax, eax
je 0x140053d60
lea r8, [rbp - 0x38]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
je 0x140053d60
mov rcx, rsi
call qword [rbx + 0x18]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140053d60
mov rdx, rax
mov rcx, rsi
call qword [rbx + 0x20]
test eax, eax
je 0x140053d60
lea rcx, str.glGetStringi
call qword [rbx + 0x30]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140053d0c
lea rdx, str.glGetStringi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rcx, str.glGetString
call qword [rbx + 0x30]
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140053d34
lea rdx, str.glGetString
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rcx, str.glGetIntegerv
call qword [rbx + 0x30]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x140053d5c
lea rdx, str.glGetIntegerv
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
mov bl, 1
jmp 0x140053d62
xor bl, bl
lea rdx, [r14 - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140053dad
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CAtlStringMgr.0
cmp rax, r9
jne 0x140053ddd
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140053ddd
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
movzx eax, bl
jmp 0x140053db4
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14022aa20
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call r8
nop
jmp 0x140053dad