Function at 0x409509
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x28
mov eax, 0x435223
call fcn.0041dc37
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 0x409560
xor al, al
jmp 0x40987f
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 0x40987c
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40987c
mov eax, dword [0x444c6c]
mov dword [ebp - 0x20], eax
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0x444c68
call fcn.0040a051
lea edi, [ebp - 0x24]
mov esi, eax
call fcn.0040a8e3
test al, al
je 0x40987c
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
cmp byte [eax + 0x21], bl
je 0x409709
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.00419f90
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.004010d5
mov esi, 0x43a4a8
push esi
call fcn.004194fb
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004019bd
cmp eax, 0xffffffff
je 0x4096fa
mov esi, 0x43a4bc
push esi
call fcn.004194fb
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004019bd
cmp eax, 0xffffffff
je 0x4096fa
mov esi, 0x43a4c4
push esi
call fcn.004194fb
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004019bd
cmp eax, 0xffffffff
jne 0x4096fa
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 0x4096fa
push 0x4b3
push esi
mov ecx, 0x43a4cc
call fcn.004098a4
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x28], bl
jne 0x4096ca
push 0x4b4
push esi
mov ecx, 0x43a4d8
call fcn.004098a4
test al, al
je 0x4096ca
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x27], bl
jne 0x4096ea
push 0x4b5
push esi
mov ecx, 0x43a4e8
call fcn.004098a4
test al, al
je 0x4096ea
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], bl
je 0x4096fa
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.004011b7
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x20], bl
je 0x40985a
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.00419f90
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.004010d5
mov esi, 0x43a4f0
push esi
call fcn.004194fb
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004019bd
cmp eax, 0xffffffff
je 0x40984b
mov esi, 0x43a4bc
push esi
call fcn.004194fb
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004019bd
cmp eax, 0xffffffff
je 0x40984b
push 0xff
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
call edi
lea eax, [ebp + 0x1c]
lea esi, [ebp]
call fcn.004010d5
mov esi, 0x43a4c4
push esi
call fcn.004194fb
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004019bd
cmp eax, 0xffffffff
jne 0x40984b
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 0x409815
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x409815
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 0x40984b
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x27], bl
jne 0x40984b
push 0x4b1
push dword [ebp - 0x20]
mov ecx, 0x43a500
call fcn.004098a4
cmp al, bl
je 0x40984b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.004011b7
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x34]
call fcn.00409fa3
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.00419556
add ebp, 0x220
leave
ret 8