Function at 0x1801789f0
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, rdx
mov rsi, rcx
mov ebx, 1
mov dword [rsp + 0x24], ebx
test rdx, rdx
jne 0x180178a49
call qword [sym.imp.USER32.dll_GetFocus]
mov r14, rax
test rax, rax
je 0x180178d28
mov rdx, r14
mov rcx, rsi
call fcn.180171460
mov r15d, eax
cmp eax, 1
jbe 0x180178a76
cmp qword [rsi + 0x1f8], 0
je 0x180178ab6
call fcn.1801dc4f0
xor edi, edi
mov ebx, edi
test al, al
sete bl
jmp 0x180178aa8
mov edx, 0xfffffff0
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
je 0x180178a95
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x24], ebx
jmp 0x180178d28
cmp r15d, 1
jne 0x180178ab6
mov rcx, r14
call fcn.180173d70
movzx ebx, al
xor edi, edi
mov dword [rsp + 0x24], ebx
test ebx, ebx
je 0x180178d28
jmp 0x180178ab8
xor edi, edi
mov r12d, edi
cmp r15d, 2
sete r12b
mov byte [rsp + 0x20], r12b
cmp r15d, 3
jne 0x180178bbc
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.1802c7550
mov rcx, r14
call qword [sym.imp.USER32.dll_GetParent]
mov r15, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rsp + 0x60]
call fcn.1802d7a9c
lea rdx, [0x180036488]
lea rcx, [rsp + 0x60]
call fcn.1802c77c8
test rax, rax
je 0x180178b6d
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rsp + 0x60]
call fcn.1802d7a9c
lea rdx, [0x180036490]
lea rcx, [rsp + 0x60]
call fcn.1802c77c8
test rax, rax
je 0x180178bbc
mov byte [rsp + 0x20], 1
jmp 0x180178bc5
lea rdx, [0x1800364a0]
lea rcx, [rsp + 0x60]
call fcn.1802c77c8
test rax, rax
je 0x180178bbc
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rsp + 0x60]
call fcn.1802d7a9c
lea rdx, [0x1800364c0]
lea rcx, [rsp + 0x60]
call fcn.1802c77c8
test rax, rax
cmovne ebx, edi
mov dword [rsp + 0x24], ebx
test r12b, r12b
je 0x180178d28
call fcn.1800afb10
cmp qword [rsi + 0x1d48], rax
jne 0x180178c78
lea rcx, [0x1800364d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
mov qword [rsp + 0x30], rax
call fcn.1800afb10
mov qword [rsp + 0x30], rax
cmp r15, qword [rsi + 0x1d48]
je 0x180178c2b
mov r12, qword [rsi + 0x1d48]
call fcn.1800afb10
cmp r12, rax
je 0x180178c24
mov rcx, r12
call fcn.1800bc9c0
call fcn.1800afb10
mov qword [rsi + 0x1d48], rax
mov qword [rsi + 0x1d48], r15
lea rcx, [rsp + 0x30]
call fcn.1800dbc90
mov r15, qword [rsi + 0x1d48]
call fcn.1800afb10
cmp r15, rax
je 0x180178c78
lea rdx, [0x1800364e0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x1d50], rax
lea rdx, [0x180036500]
mov rcx, qword [rsi + 0x1d48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x1d58], rax
call fcn.1800afb10
cmp qword [rsi + 0x1d48], rax
je 0x180178d28
mov qword [rsp + 0x28], rdi
mov eax, 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x48], edi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180178cad
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x28]
lea r8, [0x180079948]
xor edx, edx
mov rcx, r14
call qword [rsi + 0x1d50]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x180178d13
mov r8, qword [rsi + 0x1d58]
mov rcx, rsi
call fcn.18016f340
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180178cf9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
test rsi, rsi
cmovne ebx, edi
mov dword [rsp + 0x24], ebx
je 0x180178d0e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180178d23
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
mov qword [rsp + 0x28], rdi
mov eax, ebx
jmp 0x180178d30
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1802b85a0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret