Function at 0x4065fa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
mov dword [ebp - 0x39c], edi
test esi, esi
je 0x406acb
test byte [esi + 0x1c], 8
jne 0x406acb
push 0x12b
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test byte [esi + 0x18], 2
je 0x40674c
push 0x12
lea eax, [ebp - 0x25c]
push str.HwndWrapper_VMware
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
jne 0x406742
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406742
push 0x12b
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x15
lea eax, [ebp - 0x130]
push str.VMware_Horizon_Client
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
je 0x406ac7
push 0xd
lea eax, [ebp - 0x130]
push str.Hidden_Window
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
je 0x406ac7
push 0x1a
lea eax, [ebp - 0x130]
push str.SystemResourceNotifyWindow
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
je 0x406ac7
push edi
call dword [sym.imp.USER32.dll_GetTopWindow]
test eax, eax
je 0x406ac7
mov ecx, dword [esi + 0x10]
mov eax, 0x4b1aef
test ecx, ecx
cmovne eax, ecx
xor edi, edi
cmp byte [eax], 0
je 0x406724
push edi
push ecx
lea eax, [ebp - 0x130]
push eax
call fcn.00422630
add esp, 0xc
test eax, eax
jne 0x406ac7
mov eax, dword [ebp - 0x39c]
or dword [esi + 0x1c], 8
mov dword [esi + 0x30], ebx
mov ebx, edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x24], 2
jmp 0x406ac7
test byte [esi + 0x18], 2
jne 0x406ac7
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40691c
push 0x16
lea eax, [ebp - 0x25c]
push str.TscShellContainerClass
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
jne 0x40691c
push 0x12b
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [esi + 4]
call fcn.0048c9e8
mov edx, eax
mov dword [ebp - 0x390], edx
pop ecx
mov al, byte [edx]
test al, al
je 0x4067f8
push 0x5f
pop ebx
cmp al, 0x5c
je 0x4067ca
cmp al, 0x3a
je 0x4067d2
cmp al, 0x3c
jne 0x4067b6
mov cl, 0x28
jmp 0x4067e6
cmp al, 0x3e
jne 0x4067be
mov cl, 0x29
jmp 0x4067e6
cmp al, 0x22
jne 0x4067c6
mov cl, 0x27
jmp 0x4067e6
cmp al, 0x2f
jne 0x4067ce
mov cl, bl
jmp 0x4067e6
cmp al, 0x7c
jne 0x4067d6
mov cl, 0x2d
jmp 0x4067e6
cmp al, 0x2a
jne 0x4067de
mov cl, 0x23
jmp 0x4067e6
cmp al, 0x3f
movzx ecx, al
cmove ecx, ebx
mov byte [edx], cl
inc edx
mov al, byte [edx]
test al, al
jne 0x4067a6
mov edx, dword [ebp - 0x390]
xor ebx, ebx
inc ebx
test byte [esi + 0x18], 4
je 0x4068a1
mov edx, dword [esi + 0x10]
xor edi, edi
test edx, edx
je 0x40683c
mov al, byte [edx]
mov byte [ebp - 0x395], al
test al, al
je 0x40683c
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x38c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406822
sub ecx, dword [ebp - 0x38c]
movsx eax, byte [edx + ecx - 1]
mov dword [ebp - 0x3a0], eax
jmp 0x40684a
mov al, byte [edx]
mov dword [ebp - 0x3a0], edi
mov byte [ebp - 0x395], al
cmp dword [ebp - 0x3a0], 0x2a
mov ecx, 0x4b1aef
push edi
push str._s_s_s
mov eax, ecx
mov dword [ebp - 0x38c], 0x4b29b0
cmovne eax, dword [ebp - 0x38c]
cmp byte [ebp - 0x395], 0x2a
push eax
cmovne ecx, dword [ebp - 0x38c]
push edx
push ecx
push str._s_s_s
push edi
push edi
call fcn.0041ff80
add esp, 0x1c
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00422630
add esp, 0xc
jmp 0x4068cf
mov ecx, str._s____s
test edx, edx
push ecx
push dword [esi + 0x10]
mov eax, 0x4b1aef
cmovne eax, edx
xor edi, edi
push eax
push ecx
push edi
push edi
call fcn.0041ff80
add esp, 0x18
lea ecx, [ebp - 0x130]
mov edx, eax
call fcn.004059eb
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x4068f1
mov eax, dword [ebp - 0x39c]
or dword [esi + 0x1c], 8
mov dword [esi + 0x30], ebx
mov ebx, edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x24], 2
cmp dword [ebp - 0x390], 0
je 0x406ac7
lea eax, [ebp - 0x390]
push eax
call fcn.0041f010
push dword [ebp - 0x390]
call fcn.0048690c
pop ecx
pop ecx
jmp 0x406ac7
test byte [esi + 0x18], 2
jne 0x406ac7
cmp dword [esi + 0x60], edi
jne 0x406956
push 0x1b
lea eax, [ebp - 0x25c]
push str.Credential_Dialog_Xaml_Host
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
jne 0x406956
or dword [esi + 0x1c], 8
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
xor ebx, ebx
jmp 0x406ac7
test byte [esi + 0x18], 2
jne 0x406ac7
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406ac7
push 6
lea eax, [ebp - 0x25c]
push str.32770
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
jne 0x406ac7
xor edi, edi
cmp dword [esi + 0x2c], edi
je 0x406ac7
push 0x12b
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x39c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp - 0x39c]
call dword [sym.imp.USER32.dll_GetTopWindow]
jmp 0x406a9f
push 0x12b
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x25c]
push str.Button
push eax
call fcn.00486acf
pop ecx
pop ecx
test eax, eax
jne 0x406a91
push dword [ebp - 0x390]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, ebx
je 0x406a13
push dword [ebp - 0x390]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x36b4
jne 0x406a91
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x39c]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x394]
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x3a0], eax
test eax, eax
je 0x406a91
lea ecx, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x12b
push ecx
lea ecx, [ebp - 0x388]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x406a85
cmp dword [ebp - 0x38c], edi
jle 0x406a85
lea eax, [ebp - 0x388]
push str.mstsc.exe
push eax
call fcn.00424010
pop ecx
pop ecx
test eax, eax
jne 0x406aaf
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push dword [ebp - 0x390]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x390], eax
test eax, eax
jne 0x4069c2
jmp 0x406ac7
push dword [ebp - 0x3a0]
or dword [esi + 0x1c], 8
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x406acd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
leave
ret 8