Function at 0x40a451
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x28
mov eax, 0x43645c
call fcn.0041ed67
mov eax, dword [ebp + 0x228]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
push esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0xd], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x22c]
je 0x40a4a8
xor al, al
jmp 0x40a7c7
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a7c4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a7c4
mov eax, dword [0x446d0c]
mov dword [ebp - 0x20], eax
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0x446d08
call fcn.0040afb8
lea edi, [ebp - 0x24]
mov esi, eax
call fcn.0040b84a
test al, al
je 0x40a7c4
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
cmp byte [eax + 0x21], bl
je 0x40a651
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
push 0x1fe
lea eax, [ebp + 0x1e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp + 0x1c], bx
call fcn.0041b0d0
add esp, 0xc
push 0xff
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call edi
lea eax, [ebp + 0x1c]
lea esi, [ebp]
call fcn.0040185a
mov esi, 0x43c540
push esi
call fcn.0041a647
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.00402227
cmp eax, 0xffffffff
je 0x40a642
mov esi, 0x43c554
push esi
call fcn.0041a647
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.00402227
cmp eax, 0xffffffff
je 0x40a642
mov esi, 0x43c55c
push esi
call fcn.0041a647
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.00402227
cmp eax, 0xffffffff
jne 0x40a642
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push str.32770
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a642
push 0x4b3
push esi
mov ecx, 0x43c564
call fcn.0040a7ec
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x28], bl
jne 0x40a612
push 0x4b4
push esi
mov ecx, 0x43c570
call fcn.0040a7ec
test al, al
je 0x40a612
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x27], bl
jne 0x40a632
push 0x4b5
push esi
mov ecx, 0x43c580
call fcn.0040a7ec
test al, al
je 0x40a632
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], bl
je 0x40a642
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.0040193c
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x20], bl
je 0x40a7a2
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
push 0x1fe
lea eax, [ebp + 0x1e]
push ebx
mov dword [ebp - 4], 1
push eax
mov word [ebp + 0x1c], bx
call fcn.0041b0d0
add esp, 0xc
push 0xff
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call edi
lea eax, [ebp + 0x1c]
lea esi, [ebp]
call fcn.0040185a
mov esi, 0x43c588
push esi
call fcn.0041a647
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.00402227
cmp eax, 0xffffffff
je 0x40a793
mov esi, 0x43c554
push esi
call fcn.0041a647
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.00402227
cmp eax, 0xffffffff
je 0x40a793
push 0xff
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
call edi
lea eax, [ebp + 0x1c]
lea esi, [ebp]
call fcn.0040185a
mov esi, 0x43c55c
push esi
call fcn.0041a647
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.00402227
cmp eax, 0xffffffff
jne 0x40a793
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push ebx
mov edi, str.32770
push edi
push ebx
push dword [ebp - 0x14]
call esi
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a75d
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40a75d
push ebx
push edi
push ebx
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a793
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x27], bl
jne 0x40a793
push 0x4b1
push dword [ebp - 0x20]
mov ecx, 0x43c598
call fcn.0040a7ec
cmp al, bl
je 0x40a793
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.0040193c
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x34]
call fcn.0040af0a
push ebx
push ebx
push 0xf5
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.0041a6a2
add ebp, 0x220
leave
ret 8