Function at 0x140056020
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
movsxd r13, ecx
mov r12b, r8b
lea r9, [rbp + 0x78]
lea r8, [rbp - 0x50]
lea rcx, [0x14009f300]
mov rdi, rdx
mov edx, r13d
call fcn.140053e2c
xor r14d, r14d
test al, al
jne 0x140056072
mov dword [rdi], r14d
jmp 0x140056785
mov rax, qword [0x14009f3c8]
movsxd rcx, dword [rbp + 0x78]
or r15, 0xffffffffffffffff
mov rcx, qword [rax + rcx*8]
mov dword [rdi], r15d
mov rbx, qword [rcx]
movzx eax, byte [rbx + 0xf4]
mov rsi, qword [rbx]
cmp eax, 0x11
jg 0x140056443
je 0x140056365
test eax, eax
je 0x140056312
cmp eax, 1
je 0x1400562a7
cmp eax, 8
je 0x14005629d
cmp eax, 0xa
je 0x140056256
cmp eax, 0xc
je 0x14005606a
cmp eax, 0xd
jle 0x14005654a
cmp eax, 0xf
jle 0x14005618b
cmp eax, 0x10
jne 0x14005654a
lea r8d, [r15 + 0xa]
xor r9d, r9d
mov edx, 0x110a
mov rcx, rsi
mov dword [rdi], r14d
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140056785
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 4
test r12b, r12b
je 0x140056165
mov ecx, 0x2000
call fcn.14006f7d8
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x113e
mov rcx, rsi
mov dword [rsp + 0x68], 1
mov rbx, rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0xfff
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x14005630a
mov rcx, rbx
call fcn.14006f380
jmp 0x140056785
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x113e
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140056785
mov eax, dword [rbp - 0x68]
jmp 0x140056783
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x140056785
mov ecx, 0x208
call fcn.14006f7d8
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
mov dword [rbp - 0x20], 0x50
lea r9, [rbp - 0x20]
mov edx, r13d
mov rsi, rax
test r12b, r12b
je 0x1400561f3
mov dword [rbp - 0x1c], reloc.WSOCK32.dll_recv
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0x104
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
jne 0x1400561eb
mov dword [rdi], r14d
mov rcx, rsi
jmp 0x14005615b
mov rax, rsi
jmp 0x140056787
mov dword [rbp - 0x1c], 1
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov rcx, rsi
test eax, eax
je 0x14005615b
call fcn.14006f380
mov r11d, dword [rbp - 0x14]
mov al, r11b
mov dword [rdi], r11d
and al, 3
neg al
sbb ecx, ecx
and ecx, 0x40
add ecx, 0x40
test r11d, 0x8080
je 0x140056236
mov edx, 0x100
or ecx, edx
test r11b, 8
je 0x140056241
or ecx, 1
jmp 0x140056244
or ecx, 4
bt r11d, 0xc
jae 0x14005624f
bts ecx, 9
mov dword [rdi], ecx
jmp 0x140056785
xor r9d, r9d
xor r8d, r8d
mov edx, 0x130b
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi], eax
test r12b, r12b
je 0x140056785
lea r9, [rbp - 0x48]
movsxd r8, eax
mov edx, 0x133c
mov rcx, rsi
mov dword [rbp - 0x48], 8
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rbp - 0x28]
mov dword [rdi], r11d
jmp 0x140056785
mov edx, 0x408
jmp 0x140056774
xor r9d, r9d
xor r8d, r8d
mov edx, 0x188
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r15d
je 0x14005654a
movsxd rdi, eax
xor r9d, r9d
mov edx, 0x18a
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rax + 1]
mov eax, 2
mul r11
cmovo rax, r15
mov rcx, rax
call fcn.14006f7d8
mov edx, 0x189
mov r8, rdi
mov r9, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
jmp 0x140056787
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r15d
je 0x14005654a
movsxd rdi, eax
xor r9d, r9d
mov edx, 0x149
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rax + 1]
mov eax, 2
mul r11
cmovo rax, r15
mov rcx, rax
call fcn.14006f7d8
mov edx, 0x148
jmp 0x1400562f8
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x60]
mov edx, 0xfffffff0
mov qword [rsp + 0x70], rax
mov dword [rdi], r14d
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [rsp + 0x68], 8
mov dword [rsp + 0x7c], 0xf000
mov esi, eax
test r12b, r12b
je 0x1400563e2
mov ecx, 0x2000
call fcn.14006f7d8
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x113e
mov rdi, rax
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x68], 1
mov dword [rbp - 0x78], 0xfff
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1400563da
mov rax, rdi
jmp 0x140056787
mov rcx, rdi
jmp 0x14005615b
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x113e
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140056785
mov ecx, dword [rsp + 0x78]
mov edx, 0x100
test edx, esi
je 0x140056421
mov eax, ecx
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [rdi], eax
test cl, 2
je 0x140056428
or dword [rdi], edx
test cl, 0x20
je 0x140056431
bts dword [rdi], 0xa
test cl, 0x10
je 0x140056785
bts dword [rdi], 9
jmp 0x140056785
cmp eax, 0x12
je 0x14005676f
cmp eax, 0x13
je 0x140056714
cmp eax, 0x14
je 0x1400565b2
cmp eax, 0x15
je 0x14005658e
cmp eax, 0x18
jle 0x14005654a
cmp eax, 0x1a
jle 0x1400564cf
cmp eax, 0x1c
jne 0x14005654a
lea r9, [rbp - 0x60]
xor r8d, r8d
mov edx, 0x1001
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14005606a
mov ecx, SafeArrayUnaccessData
call fcn.14006f7d8
movzx ecx, word [rbp - 0x5a]
movzx r9d, word [rbp - 0x5e]
movzx r8d, word [rbp - 0x60]
mov dword [rsp + 0x20], ecx
lea rdx, str._d__02d__02d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14005630a
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
test r12b, r12b
je 0x14005652a
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [rax + 1]
mov eax, 2
movsxd rcx, ebx
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14006f7d8
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov r12, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x140056522
mov dword [rdi], r14d
mov rcx, r12
jmp 0x14005615b
mov rax, r12
jmp 0x140056787
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi], eax
test eax, eax
jne 0x140056785
mov dword [rdi], 4
jmp 0x140056785
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
lea edi, [rax + 1]
mov eax, 2
movsxd rcx, edi
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14006f7d8
mov r8d, edi
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14005630a
cmp dword [rbx + 0xd0], 4
lea rcx, [rbx + 0xc8]
jne 0x1400565a8
call fcn.140017790
jmp 0x140056787
call fcn.1400178dc
jmp 0x140056783
mov rcx, qword [rbx + 0x60]
mov edx, 0xffffffec
mov dword [rdi], r15d
call qword [sym.imp.USER32.dll_GetWindowLongW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x38]
mov esi, eax
call fcn.14006fdf0
mov rcx, qword [rbx + 0x60]
lea r9, [rbp - 0x48]
mov r8, r15
mov edx, 0x1053
mov dword [rbp - 0x48], 1
mov qword [rbp - 0x38], r13
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x34], eax
cmp eax, r15d
je 0x140056785
test sil, 4
je 0x140056656
test r12b, r12b
je 0x140056656
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x40], 0xf000
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140056785
mov eax, dword [rsp + 0x3c]
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x140056783
mov ecx, 0x2000
call fcn.14006f7d8
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x50], 0xfff
mov esi, r14d
mov rdi, rax
mov r12, rax
cmp r14w, word [rbx + 0xf8]
jge 0x1400566ef
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x48], r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, r12
call fcn.14006f364
mov ecx, 0xffe
sub ecx, eax
mov dword [rsp + 0x50], ecx
test ecx, ecx
jle 0x1400563d2
mov rcx, rdi
call fcn.14006f364
lea rcx, [rdi + rax*2]
movzx eax, word [0x14009f314]
mov word [rcx], ax
mov word [rcx + 2], r14w
call qword [sym.imp.USER32.dll_CharNextW]
mov r12, rax
movsx eax, word [rbx + 0xf8]
inc esi
cmp esi, eax
jl 0x140056683
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x48], r12
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400563d2
mov r9d, 2
mov r8, r15
mov edx, 0x100c
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x38]
mov dword [rdi], eax
call fcn.14006fdf0
mov eax, dword [rdi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104b
mov rcx, rsi
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 4
call qword [sym.imp.USER32.dll_SendMessageW]
neg rax
sbb ecx, ecx
and ecx, dword [rsp + 0x58]
jmp 0x14005624f
mov edx, 0x400
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi], eax
xor eax, eax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret