Function at 0x46a618
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a879
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1e
mov eax, dword [0x47c61c]
call fcn.0040548c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, dword [0x47c61c]
call fcn.0040548c
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.004051c0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408f8c
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
call fcn.0046a3ac
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.004055d0
test eax, eax
jle 0x46a85e
push 3
mov eax, 0x47c628
mov ecx, 1
mov edx, dword [0x4698d8]
call fcn.00406314
add esp, 4
push 3
mov eax, 0x47c62c
mov ecx, 1
mov edx, dword [0x4698fc]
call fcn.00406314
add esp, 4
mov eax, dword [0x47c628]
xor ecx, ecx
mov edx, 0xc
call fcn.00403888
mov eax, dword [0x47c62c]
xor ecx, ecx
mov edx, 0xc
call fcn.00403888
mov dword [0x47c630], 3
cmp byte [ebp - 5], 0
je 0x46a6fa
call fcn.0046a558
mov byte [0x47c638], 0
xor eax, eax
mov al, byte [ebp - 5]
add eax, 2
push eax
push 0x46a104
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_EnumChildWindows
cmp byte [0x47c638], 0
je 0x46a85e
mov eax, dword [0x47c630]
dec eax
sub eax, 3
jl 0x46a781
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 3
mov eax, dword [0x47c628]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c628]
cmp eax, dword [edx + 4]
jle 0x46a779
mov eax, dword [0x47c628]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c628]
mov dword [edx + 4], eax
mov eax, dword [0x47c62c]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c62c]
mov dword [edx + 4], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x46a73b
mov eax, dword [0x47c630]
dec eax
sub eax, 3
jl 0x46a7f3
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 3
mov eax, dword [0x47c628]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c628]
cmp eax, dword [edx + 8]
jle 0x46a7eb
mov eax, dword [0x47c628]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c628]
cmp eax, dword [edx + 4]
jge 0x46a7eb
mov eax, dword [0x47c628]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c628]
mov dword [edx + 8], eax
mov eax, dword [0x47c62c]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47c62c]
mov dword [edx + 8], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x46a797
push 0
push 0
push 0xf5
mov eax, dword [0x47c62c]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_SendMessageA
push 0
push 0
push 0xf2
mov eax, dword [0x47c62c]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_SendMessageA
and eax, 0x80000001
jns 0x46a82d
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x46a848
push 0
push 0
push 0xf5
mov eax, dword [0x47c62c]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_SendMessageA
push 0
push 0
push 0xf5
mov eax, dword [0x47c62c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a880
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404fec
ret