Function at 0x409150
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x970
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
movzx r12d, r8w
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rax + 0x18], r13d
lea r15d, [r13 + 1]
cmp r8w, r15w
jne 0x409893
mov ebp, 0x400
mov r8d, ebp
lea rdx, [rax - 0x828]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [rbp + 0x66]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov r14d, 0x100
cmp eax, r15d
jne 0x409321
lea r8, [rsp + 0x9b0]
lea rdx, [0x0078dc30]
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea r8, [rsp + 0x9b0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.004023b4
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xd0]
call fcn.0057b9c0
nop
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.005831b8
nop
lea rax, [rsp + 0xd0]
mov rcx, qword [rsp + 0x118]
cmp rcx, rax
je 0x40926b
cmp rcx, r13
je 0x40926b
mov rax, qword [rsp + 0xd0]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x409265
call fcn.006a4944
jmp 0x40926b
call fcn.006a3610
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x4092a3
cmp rcx, r13
je 0x4092a3
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x40929d
call fcn.006a4944
jmp 0x4092a3
call fcn.006a3610
nop
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x4092d7
cmp rcx, r13
je 0x4092d7
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x4092d2
call fcn.006a4944
jmp 0x4092d7
call fcn.006a3610
cmp dword [rsp + 0x168], r13d
jne 0x409314
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.greylink_5.98
lea rdx, str.Regex_ERROR
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x120]
call fcn.00583350
xor eax, eax
jmp 0x4098a3
lea rcx, [rsp + 0x120]
call fcn.00583350
lea r8, [rsp + 0x9b0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.00402190
nop
mov rcx, qword [rsi + 0x48]
cmp rax, rcx
je 0x409363
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
call fcn.0040289c
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x409394
cmp rcx, r13
je 0x409394
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, r14
jbe 0x40938e
call fcn.006a4944
jmp 0x409394
call fcn.006a3610
nop
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x4093c8
cmp rcx, r13
je 0x4093c8
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x4093c3
call fcn.006a4944
jmp 0x4093c8
call fcn.006a3610
mov r8d, ebp
lea rdx, [rsp + 0x170]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x9b0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.00402190
nop
mov rcx, qword [rsi + 0x48]
add rcx, 0x60
cmp rax, rcx
je 0x409423
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
call fcn.0040289c
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x409454
cmp rcx, r13
je 0x409454
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, r14
jbe 0x40944e
call fcn.006a4944
jmp 0x409454
call fcn.006a3610
nop
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x409488
cmp rcx, r13
je 0x409488
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x409483
call fcn.006a4944
jmp 0x409488
call fcn.006a3610
mov r8d, ebp
lea rdx, [rsp + 0x170]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.USER32.dll_GetWindowTextW]
or rbx, 0xffffffffffffffff
cmp word [rsp + 0x170], r13w
je 0x4094e7
lea r8, [rsp + 0x9b0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.00402190
lea edi, [rbx + 8]
mov rcx, qword [rax + 0x28]
call fcn.006a5464
mov r11, rax
jmp 0x4094ea
mov r11, rbx
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x40], r11
test dil, 4
je 0x409533
and edi, 0xfffffffb
mov dword [rsp + 0x9b0], edi
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x409533
cmp rcx, r13
je 0x409533
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, r14
jbe 0x40952d
call fcn.006a4944
jmp 0x409533
call fcn.006a3610
nop
test dil, 2
je 0x409570
and edi, 0xfffffffd
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x409570
cmp rcx, r13
je 0x409570
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x40956b
call fcn.006a4944
jmp 0x409570
call fcn.006a3610
test r15b, dil
je 0x409578
and edi, 0xfffffffe
mov r8d, ebp
lea rdx, [rsp + 0x170]
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x170], r13w
je 0x4095d4
or edi, 8
lea r8, [rsp + 0x9b0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.00402190
or edi, 0x30
mov rcx, qword [rax + 0x28]
call fcn.006a5464
mov rbx, rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x48], rbx
test dil, 0x20
je 0x40961d
and edi, 0xffffffdf
mov dword [rsp + 0x9b0], edi
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x40961d
cmp rcx, r13
je 0x40961d
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, r14
jbe 0x409617
call fcn.006a4944
jmp 0x40961d
call fcn.006a3610
nop
test dil, 0x10
je 0x40965a
and edi, 0xffffffef
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x40965a
cmp rcx, r13
je 0x40965a
mov rax, qword [rsp + 0x20]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x409655
call fcn.006a4944
jmp 0x40965a
call fcn.006a3610
test dil, 8
je 0x409663
and edi, 0xfffffff7
mov r8d, ebp
lea rdx, [rsp + 0x170]
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x170], r13w
je 0x4096ee
or edi, 0x40
lea r8, [rsp + 0x9b0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.004023b4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.00402190
mov rbx, rax
or edi, 0x180
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rbx + 0x28]
call fcn.006a5458
movsxd rcx, eax
movabs rax, 0xc92a69c000
imul rcx, rax
sub rbp, rcx
jmp 0x4096f1
mov rbp, r13
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x50], rbp
bt edi, 8
jae 0x40973b
btr edi, 8
mov dword [rsp + 0x9b0], edi
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x40973b
cmp rcx, r13
je 0x40973b
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, r14
jbe 0x409735
call fcn.006a4944
jmp 0x40973b
call fcn.006a3610
nop
test dil, dil
jns 0x409773
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x409773
cmp rcx, r13
je 0x409773
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, r14
jbe 0x40976e
call fcn.006a4944
jmp 0x409773
call fcn.006a3610
xor r9d, r9d
xor r8d, r8d
mov ebx, 0xf0
mov edx, ebx
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r15d
sete cl
mov rax, qword [rsi + 0x48]
mov byte [rax + 0x30], cl
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r15d
sete cl
mov rax, qword [rsi + 0x48]
mov byte [rax + 0x38], cl
xor r9d, r9d
xor r8d, r8d
mov ebx, 0x147
mov edx, ebx
mov rcx, qword [rsi + 0x88]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x48]
mov dword [rcx + 0x3c], eax
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsi + 0x90]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x48]
mov dword [rcx + 0x58], eax
mov edx, 0x464
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, r15d
sete cl
mov rax, qword [rsi + 0x48]
mov byte [rax + 0x33], cl
mov edx, 0x465
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, r15d
sete cl
mov rax, qword [rsi + 0x48]
mov byte [rax + 0x32], cl
mov edx, 0x466
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, r15d
sete cl
mov rax, qword [rsi + 0x48]
mov byte [rax + 0x31], cl
mov rax, qword [rsi + 0x48]
cmp byte [rax + 0x33], r13b
je 0x409877
lea rcx, [rax + 0x60]
lea rax, [0x00892a90]
cmp rax, rcx
je 0x409877
mov r8, qword [0x00892ab0]
mov rdx, qword [0x00892ab8]
call fcn.0040289c
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x48]
mov dword [rcx + 0x34], eax
movzx edx, r12w
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret