Function at 0x140022170
Capabilities:
Enumerate gui resources
Get graphical window text

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 [0x140057010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x49], rcx
xor ebx, ebx
mov dword [rcx + 0xc0], ebx
mov qword [rcx + 0xc8], rbx
mov r15d, dword [rdx + 0x28]
mov esi, dword [rdx + 0x2c]
mov dword [rsp + 0x40], esi
mov r13, qword [rdx]
mov qword [rbp - 0x31], r13
cmp dword [rdx + 0x40], ebx
je 0x14002229b
mov rbx, r13
test r13, r13
jne 0x1400221e2
mov rbx, qword [0x14005a718]
test rbx, rbx
je 0x140022222
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x140022207
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x1400221e2
test r13, r13
jne 0x14002221d
test rbx, rbx
je 0x140022222
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rbx, rax
test rbx, rbx
jne 0x140022239
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, rax
test rax, rax
jne 0x140022239
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rbx, rax
mov r13, rbx
mov qword [rbp - 0x31], rbx
cmp dword [r14 + 0x44], 0
je 0x14002227d
mov qword [rdi + 0xe0], 2
mov qword [rdi + 0xe8], 1
xor ebx, ebx
mov qword [rdi + 0xf0], rbx
mov qword [rdi + 0xf8], rbx
mov r15d, 0x92c80000
mov dword [rsp + 0x40], 1
jmp 0x14002229b
and r15d, 0x2dffffff
or r15d, 0x92000000
bt r15d, 0x12
jb 0x140022299
or esi, 1
mov dword [rsp + 0x40], esi
xor ebx, ebx
test r13, r13
je 0x1400222a9
test r15d, r15d
jns 0x140022357
mov rcx, r13
test r13, r13
jne 0x1400222bd
mov rcx, qword [0x14005a718]
test rcx, rcx
je 0x1400222fc
mov edx, 2
call qword [sym.imp.USER32.dll_MonitorFromWindow]
test rax, rax
je 0x1400222fc
mov dword [rbp - 0x11], 0x28
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x1400222fc
movups xmm0, xmmword [rbp - 0xd]
movups xmmword [rbp - 0x59], xmm0
mov ecx, dword [rbp - 0x4d]
mov ebx, dword [rbp - 0x51]
mov esi, dword [rbp - 0x55]
mov r12d, dword [rbp - 0x59]
jmp 0x140022318
mov r12d, ebx
mov esi, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
cmp qword [rdi + 0x100], 1
jne 0x140022345
sub ebx, dword [r14 + 0x18]
lea eax, [r12 + rbx]
cdq
sub eax, edx
sar eax, 1
mov dword [r14 + 0x10], eax
sub ecx, dword [r14 + 0x1c]
lea eax, [rsi + rcx]
cdq
sub eax, edx
sar eax, 1
mov dword [r14 + 0x14], eax
jmp 0x14002234d
add dword [r14 + 0x10], r12d
add dword [r14 + 0x14], esi
test r13, r13
je 0x14002238c
test r15d, r15d
js 0x14002238c
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x14002237e
mov rax, qword [rcx]
call qword [rax + 0x40]
xor ebx, ebx
mov qword [rdi + 0xd0], rbx
mov r12d, dword [r14 + 0x20]
mov r13d, ebx
jmp 0x14002241c
xor ebx, ebx
mov r12d, dword [r14 + 0x20]
mov r13d, ebx
jmp 0x14002241c
mov rbx, qword [r14 + 0x38]
mov rsi, qword [rdi + 0xd0]
cmp rbx, rsi
je 0x1400223c9
mov qword [rdi + 0xd0], rbx
test rbx, rbx
je 0x1400223ad
lock inc qword [rbx + 8]
test rsi, rsi
je 0x1400223c9
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x50]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140022401
test rbx, rbx
jne 0x1400223db
xor edx, edx
jmp 0x1400223df
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.USER32.dll_SetMenu]
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x140022401
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rdi + 8]
call qword [rax + 0x50]
mov rax, qword [rdi + 0xd0]
xor ebx, ebx
test rax, rax
mov r12d, ebx
je 0x140022416
mov r12, qword [rax + 0x20]
mov r13d, 1
lea rax, [rsp + 0x48]
mov qword [rbp - 0x59], rax
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CVolObject.0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x71], rbx
mov qword [rbp - 0x61], 0x40
mov qword [rbp - 0x61], 0x100
cmp dword [r14 + 0x40], 0
je 0x1400224db
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x71], rbx
lea rdx, [rsp + 0x48]
lea rcx, [0x140021e80]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbp - 0x69]
mov rsi, rax
shr rsi, 3
test rsi, rsi
je 0x1400224d9
xor edi, edi
nop word [rax + rax]
mov rcx, qword [rbp - 0x79]
test rax, rax
cmove rcx, rdi
xor edx, edx
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.USER32.dll_EnableWindow]
inc rbx
cmp rbx, rsi
jge 0x1400224d5
mov rax, qword [rbp - 0x69]
jmp 0x1400224b0
mov rdi, qword [rbp - 0x49]
xor ebx, ebx
mov r8d, dword [r14 + 0x14]
mov r9d, dword [r14 + 0x1c]
add r9d, r8d
mov ecx, dword [r14 + 0x10]
mov edx, dword [r14 + 0x18]
add edx, ecx
mov dword [rbp - 0x21], ecx
mov dword [rbp - 0x1d], r8d
mov dword [rbp - 0x19], edx
mov dword [rbp - 0x15], r9d
mov qword [rsp + 0x30], r12
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
mov r9, qword [r14 + 0x30]
lea r8, [rbp - 0x21]
mov r15, qword [rbp - 0x31]
mov rdx, r15
mov rcx, rdi
call fcn.1400234e0
test rax, rax
je 0x140022951
test r13, r13
je 0x140022551
test r12, r12
je 0x140022551
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rdi + 8]
call qword [rax + 0x50]
lea rsi, [rdi + 8]
mov edx, 0xffffffeb
mov r8d, 0x12d12ab
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400226d7
mov r15d, ebx
cmp qword [rdi + 0xe0], 0
je 0x140022688
cmp qword [rdi + 0xe8], 0
je 0x14002259b
mov r15d, 0xc80000
jmp 0x140022680
call fcn.140001320
mov rcx, rax
test rax, rax
je 0x140022a12
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r12d, [rax + 1]
test r12d, r12d
js 0x140022a07
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, ecx
jge 0x1400225f5
mov edx, r12d
lea rcx, [rsp + 0x40]
call fcn.140023650
mov rbx, qword [rsp + 0x40]
mov r8d, r12d
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x140022615
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002f6d4
test eax, eax
js 0x140022a07
cmp eax, dword [rbx - 0xc]
jg 0x140022a07
mov dword [rbx - 0x10], eax
cdqe
xor ecx, ecx
mov word [rbx + rax*2], cx
cmp dword [rbx - 0x10], ecx
je 0x140022664
mov eax, ecx
lea r8, [0x14004ab40]
nop
movzx ecx, word [rbx + rax*2]
inc rax
cmp cx, word [r8 + rax*2 - 2]
jne 0x14002265b
cmp rax, 7
jne 0x140022640
cmp cx, word [r8 + rax*2 - 2]
mov eax, 0xc00000
cmovne r15d, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140022680
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
bts r15d, 0x16
mov rcx, qword [rsi]
mov eax, r15d
bts eax, 0x10
cmp qword [rdi + 0xf0], 0
cmove eax, r15d
mov ebx, eax
bts ebx, 0x11
cmp qword [rdi + 0xf8], 0
cmove ebx, eax
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xcb0000
cmp eax, ebx
je 0x1400226d3
mov r9d, 0x37
mov r8d, ebx
mov edx, eax
mov rcx, rsi
call fcn.140014a80
mov r15, qword [rbp - 0x31]
cmp qword [rdi + 0x110], 0
jne 0x140022720
mov rcx, qword [0x14005a690]
test rcx, rcx
jne 0x14002270e
lea r8d, [rcx + 0x30]
lea rdx, [rbp - 0x11]
lea rcx, [0x140018f10]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
mov ecx, edx
test rax, rax
cmovne rcx, qword [rbp - 9]
mov edx, 0x64
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rdi + 0x110], rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002275b
mov r9, qword [rdi + 0x110]
test r9, r9
je 0x14002275b
xor r8d, r8d
mov edx, 0x80
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rdi + 0x110]
mov edx, 0x80
lea r8d, [rdx - 0x7f]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rdi + 0x188]
test rdx, rdx
je 0x14002276f
mov rcx, rdi
call fcn.1400232c0
mov r9d, 1
mov r8, qword [r14 + 0x50]
lea edx, [r9 + 0x2f]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r12d, r12d
cmp qword [rdi + 0x190], r12
je 0x1400227b8
mov dword [rsp + 0x30], 0x13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [r12 - 1]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SetWindowPos]
cmp qword [rdi + 0x108], 0
jne 0x1400227e8
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x1400227e8
xor r8d, r8d
mov edx, 0xf010
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
nop
mov rax, qword [rdi + 0x100]
mov r13d, 3
test rax, rax
jns 0x1400227ff
mov rax, r12
jmp 0x140022806
cmp rax, r13
cmovg rax, r13
mov qword [rdi + 0x100], rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140022936
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140022936
test rdi, rdi
cmove rsi, r12
mov rbx, qword [rdi + 0x100]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140022936
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jb 0x140022936
mov rcx, qword [rsi]
sub rbx, 1
je 0x140022899
sub rbx, 1
je 0x140022889
cmp rbx, 1
je 0x14002287b
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140022936
mov edx, r13d
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140022936
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140022936
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1400228b0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x1400228be
mov edx, 9
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
lea rdx, [rbp - 0x31]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x41]
mov rcx, qword [rsi]
call fcn.140018e70
mov eax, dword [rbp - 0x31]
sub eax, dword [rbp - 0x29]
add eax, dword [rbp - 0x39]
add eax, dword [rbp - 0x41]
cdq
sub eax, edx
sar eax, 1
mov r10d, eax
mov r8d, dword [rbp - 0x2d]
mov eax, r8d
sub eax, dword [rbp - 0x25]
add eax, dword [rbp - 0x35]
add eax, dword [rbp - 0x3d]
cdq
sub eax, edx
sar eax, 1
cmp dword [rbp - 0x31], r10d
jne 0x140022913
cmp r8d, eax
je 0x140022936
mov dword [rsp + 0x30], 0x15
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9d, eax
mov r8d, r10d
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [r14 + 0x40], 0
je 0x140022998
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, rdi
call fcn.140021f20
mov dword [r14 + 0x48], eax
cmp dword [r14 + 0x40], 0
je 0x140022998
mov rax, qword [rbp - 0x69]
mov rdi, rax
shr rdi, 3
xor esi, esi
mov ebx, esi
test rdi, rdi
je 0x14002299a
nop dword [rax]
mov rcx, qword [rbp - 0x79]
test rax, rax
cmove rcx, rsi
mov edx, 1
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.USER32.dll_EnableWindow]
inc rbx
cmp rbx, rdi
jge 0x14002299a
mov rax, qword [rbp - 0x69]
jmp 0x140022970
xor esi, esi
lea rax, [rsp + 0x48]
mov qword [rbp - 0x59], rax
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x48], rax
mov rdx, qword [rbp - 0x79]
test rdx, rdx
je 0x1400229c3
lea rcx, [rsp + 0x48]
call qword [method.CWConstString.virtual_24]
mov qword [rbp - 0x79], rsi
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x71], rsi
lea rax, vtable.CVolObject.0
mov qword [rsp + 0x48], rax
mov eax, 1
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140024b80
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140011e30
nop
mov ecx, 0x80004005
call fcn.140011e30
int3