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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r12, rax
cmp qword [rsi + 0x18], rax
je 0x140048138
mov qword [rsi + 0x18], rax
mov rcx, rax
call fcn.14010f5e0
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14010ed30
nop
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov rdi, qword [rbp - 0x80]
lea r15, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r15, qword [rsp + 0x70]
cmp rdi, 8
jae 0x140047e91
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 7
jmp 0x140047ed4
mov rbx, rdi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.140005370
mov qword [rsp + 0x30], rax
lea r8, [rdi*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.140151a90
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140104fc0
nop
call fcn.1400628d0
mov rcx, rax
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x50]
call fcn.14010ec10
nop
cmp qword [rsp + 0x60], 0
jne 0x1400480b6
call fcn.140061c90
movsxd rdi, dword [rax + 0xa20]
mov rcx, qword [rsi]
call fcn.14002fbe0
mov r15, rax
cmp qword [rax + 8], 0
je 0x140047f52
call fcn.140061f60
mov rbx, rax
mov rcx, rax
call fcn.140064e40
test al, al
je 0x14004802b
mov rcx, rbx
call fcn.140064d60
cmp eax, 2
jne 0x14004802b
cmp edi, 0xffffffff
jne 0x140047f65
call fcn.14002cb00
mov qword [r15 + 8], rax
jmp 0x14004802b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
call fcn.140061f60
mov rcx, rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
call fcn.140065690
nop
mov rcx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
sub rcx, r9
movabs rax, 0x6666666666666667
imul rcx
mov r8, rdx
sar r8, 6
mov rax, r8
shr rax, 0x3f
add r8, rax
je 0x140048021
mov rax, r14
lea rcx, [r9 + 0x2c]
nop
cmp byte [rcx], 0
jne 0x140047fd6
inc rax
add rcx, 0xa0
cmp rax, r8
jb 0x140047fc0
jmp 0x140047fd9
mov r14, rax
lea rax, [r14 + rdi]
xor edx, edx
div r8
mov rbx, rdx
mov ecx, 0xa0
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov r8d, 0xa0
mov rcx, rax
call fcn.140152140
lea rdx, [rbx + rbx*4]
shl rdx, 5
add rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14000fad0
nop
mov qword [r15 + 8], rax
lea rcx, [rsp + 0x30]
call fcn.14002e2e0
mov rcx, qword [rsi]
call fcn.14002fbe0
cmp qword [rax + 8], 0
je 0x1400480ae
mov byte [rsp + 0x20], 0
mov rcx, qword [rsi]
call fcn.14002fbe0
mov rcx, qword [rsi]
call fcn.14002fbe0
lea r8, [rsp + 0x20]
mov rdx, qword [rax + 8]
call fcn.140072020
test al, al
jne 0x140048067
cmp byte [rsp + 0x20], al
je 0x14004809e
mov r8d, 0x104
lea rdx, [rbp - 0x50]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140048085
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140005060
mov rcx, qword [rsi]
call fcn.14002fbe0
mov rcx, rax
call fcn.14002d660
cmp qword [rsp + 0x60], 0
je 0x1400480d8
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
lea rdx, str.Foreground:__s
mov ecx, SHCreateMemStream
call fcn.140083970
mov rax, qword [rsi]
mov rcx, qword [rax + 0x130]
mov rcx, qword [rcx]
test rcx, rcx
je 0x140048119
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
add rcx, 0x30
mov edx, 0x100
call fcn.140155cf8
xor edx, edx
lea rcx, [0x14002ec70]
call qword [sym.imp.USER32.dll_EnumWindows]
nop
lea rcx, [rsp + 0x50]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x70]
call fcn.140004ff0
nop
lea rcx, [rsp + 0x70]
call fcn.140004ff0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret