Function at 0x4082ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x4412c4]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x28
mov eax, 0x433745
call fcn.0041c1d7
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 0x408303
xor al, al
jmp 0x408622
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 0x40861f
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40861f
mov eax, dword [0x443c4c]
mov dword [ebp - 0x20], eax
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0x443c48
call fcn.00408e16
lea edi, [ebp - 0x24]
mov esi, eax
call fcn.004096a8
test al, al
je 0x40861f
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
cmp byte [eax + 0x21], bl
je 0x4084ac
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.004180a0
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.0040109a
mov esi, 0x439278
push esi
call fcn.00417aa3
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004015d4
cmp eax, 0xffffffff
je 0x40849d
mov esi, 0x43928c
push esi
call fcn.00417aa3
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004015d4
cmp eax, 0xffffffff
je 0x40849d
mov esi, 0x439294
push esi
call fcn.00417aa3
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004015d4
cmp eax, 0xffffffff
jne 0x40849d
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 0x40849d
push 0x4b3
push esi
mov ecx, 0x43929c
call fcn.00408647
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x28], bl
jne 0x40846d
push 0x4b4
push esi
mov ecx, 0x4392a8
call fcn.00408647
test al, al
je 0x40846d
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x27], bl
jne 0x40848d
push 0x4b5
push esi
mov ecx, 0x4392b8
call fcn.00408647
test al, al
je 0x40848d
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], bl
je 0x40849d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.00401108
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x20], bl
je 0x4085fd
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.004180a0
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.0040109a
mov esi, 0x4392c0
push esi
call fcn.00417aa3
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004015d4
cmp eax, 0xffffffff
je 0x4085ee
mov esi, 0x43928c
push esi
call fcn.00417aa3
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004015d4
cmp eax, 0xffffffff
je 0x4085ee
push 0xff
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
call edi
lea eax, [ebp + 0x1c]
lea esi, [ebp]
call fcn.0040109a
mov esi, 0x439294
push esi
call fcn.00417aa3
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp]
call fcn.004015d4
cmp eax, 0xffffffff
jne 0x4085ee
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 0x4085b8
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4085b8
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 0x4085ee
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x27], bl
jne 0x4085ee
push 0x4b1
push dword [ebp - 0x20]
mov ecx, 0x4392d0
call fcn.00408647
cmp al, bl
je 0x4085ee
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.00401108
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x34]
call fcn.00408d68
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.00417afe
add ebp, 0x220
leave
ret 8