Function at 0x1400e9170
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0xb98]
sub rsp, 0xc98
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0xb60], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x50]
mov r8d, 0x40
mov qword [rsp + 0x38], rcx
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x50], 0
jne 0x1400e91c1
or eax, 0xffffffff
jmp 0x1400e94f6
lea rax, [0x140208860]
mov qword [rsp + 0xcc0], rsi
lea r9, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea r8, [0x140181e34]
lea rdx, str.Profiles
mov rcx, rbx
mov qword [rsp + 0xc88], r12
mov dword [rsp + 0x20], 0x400
mov qword [rsp + 0xc80], r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x30], r12d
mov eax, r12d
lea rdx, [rbp + 0x360]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], ax
jne 0x1400e9224
movsxd rdx, ecx
test ecx, ecx
jle 0x1400e924d
cmp word [rbp + rax*2 + 0x360], 0x7c
jne 0x1400e9241
inc esi
inc rax
cmp rax, rdx
jl 0x1400e9234
mov dword [rsp + 0x30], esi
mov r13d, r12d
test esi, esi
jle 0x1400e94dc
mov qword [rsp + 0xc90], rdi
mov qword [rsp + 0xc78], r14
mov qword [rsp + 0xc70], r15
lea rcx, [rbp + 0x160]
xor edx, edx
mov r8d, 0x200
mov r15d, r12d
mov rbx, r12
call fcn.1400f9ab0
mov r14d, r12d
lea rax, [rbp + 0x360]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400e92a0
test edi, edi
jle 0x1400e930b
lea rsi, [rbp + 0x360]
movzx eax, word [rsi]
cmp ax, 0x7c
je 0x1400e92d3
cmp rbx, 0xff
jge 0x1400e92fb
mov word [rbp + rbx*2 + 0x160], ax
inc rbx
jmp 0x1400e92fb
mov word [rbp + rbx*2 + 0x160], r12w
cmp r13d, r15d
je 0x1400e9307
lea rcx, [rbp + 0x160]
xor edx, edx
mov r8d, 0x200
inc r15d
mov rbx, r12
call fcn.1400f9ab0
inc r14d
add rsi, 2
cmp r14d, edi
jl 0x1400e92b4
mov esi, dword [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.1400f92fc
test eax, eax
jne 0x1400e937c
lea r8, [rsp + 0x50]
lea rdx, str.Profile__s
lea rcx, [rbp + 0x160]
call fcn.1400f98c8
mov r14, qword [rsp + 0x40]
lea r9, [0x140208860]
lea r8, [0x140181e34]
lea rdx, [rbp + 0x160]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdi, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
mov rcx, rdi
or r8, 0xffffffffffffffff
mov edx, 0x14c
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1400e938d
inc r13d
cmp r13d, esi
jl 0x1400e9270
jmp 0x1400e94c4
movsxd r8, eax
xor r9d, r9d
mov edx, 0x144
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov edx, 0x14e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbp + 0x360]
xor edx, edx
mov r8d, 0x800
call fcn.1400f9ab0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jle 0x1400e94a6
mov rbx, r12
nop word [rax + rax]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
call fcn.1400f9ab0
lea r9, [rsp + 0x50]
mov r8, rbx
mov edx, 0x148
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400e9421
test rax, rax
je 0x1400e9483
lea rax, [rbp + 0x360]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400e9440
lea r8, [rsp + 0x50]
xor edx, edx
movzx ecx, word [r8 + rdx*2]
lea rdx, [rdx + 1]
mov word [rax + rdx*2 - 2], cx
test cx, cx
jne 0x1400e9452
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400e9470
mov eax, dword [0x1401839b4]
mov dword [rcx], eax
inc r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov rcx, rdi
movsxd rbx, r12d
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rbx, rax
jl 0x1400e93f0
lea r9, [0x140208860]
lea r8, [rbp + 0x360]
lea rdx, str.Profiles
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov r14, qword [rsp + 0xc78]
mov rdi, qword [rsp + 0xc90]
mov r15, qword [rsp + 0xc70]
mov r13, qword [rsp + 0xc80]
mov r12, qword [rsp + 0xc88]
mov rsi, qword [rsp + 0xcc0]
xor eax, eax
mov rcx, qword [rbp + 0xb60]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0xc98
pop rbx
pop rbp
ret