Function at 0x4ad9e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x4ad9f0
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4ade70
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x412f88]
call fcn.00403a40
mov esi, eax
push 0
mov eax, dword [0x4b42b0]
mov eax, dword [eax]
call fcn.00445770
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4ada77
push 0xff
lea eax, [ebp - 0xff]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x4ada69
lea eax, [ebp - 0x104]
lea edx, [ebp - 0xff]
mov ecx, 0xff
call fcn.00404ab4
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4ada30
lea edx, [ebp - 0x10c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.004086a8
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x110]
mov eax, 0x4ade88
call fcn.004086a8
mov eax, dword [ebp - 0x110]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x118]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.004086a8
mov eax, dword [ebp - 0x114]
push eax
lea edx, [ebp - 0x11c]
mov eax, 0x4ade98
call fcn.004086a8
mov eax, dword [ebp - 0x11c]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x124]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.004086a8
mov eax, dword [ebp - 0x120]
push eax
lea edx, [ebp - 0x128]
mov eax, 0x4adea8
call fcn.004086a8
mov eax, dword [ebp - 0x128]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x130]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.004086a8
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x134]
mov eax, 0x4adeb8
call fcn.004086a8
mov eax, dword [ebp - 0x134]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x13c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004086a8
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x140]
mov eax, 0x4adec8
call fcn.004086a8
mov eax, dword [ebp - 0x140]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x148]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.004086a8
mov eax, dword [ebp - 0x144]
push eax
lea edx, [ebp - 0x14c]
mov eax, 0x4adedc
call fcn.004086a8
mov eax, dword [ebp - 0x14c]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x154]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.004086a8
mov eax, dword [ebp - 0x150]
push eax
lea edx, [ebp - 0x158]
mov eax, 0x4adeec
call fcn.004086a8
mov eax, dword [ebp - 0x158]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x160]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.004086a8
mov eax, dword [ebp - 0x15c]
push eax
lea edx, [ebp - 0x164]
mov eax, 0x4adefc
call fcn.004086a8
mov eax, dword [ebp - 0x164]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x16c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.004086a8
mov eax, dword [ebp - 0x168]
push eax
lea edx, [ebp - 0x170]
mov eax, 0x4adf14
call fcn.004086a8
mov eax, dword [ebp - 0x170]
pop edx
call fcn.00404e48
test eax, eax
jg 0x4add4d
lea edx, [ebp - 0x178]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.004086a8
mov eax, dword [ebp - 0x174]
push eax
lea edx, [ebp - 0x17c]
mov eax, 0x4adf24
call fcn.004086a8
mov eax, dword [ebp - 0x17c]
pop edx
call fcn.00404e48
test eax, eax
jle 0x4ade4b
mov eax, esi
call fcn.00403a70
mov dl, 1
mov eax, dword [0x412f88]
call fcn.00403a40
mov esi, eax
lea edx, [ebp - 0x180]
mov eax, dword [0x4b3f44]
mov eax, dword [eax]
call fcn.004088f8
cmp dword [ebp - 0x180], 0
jne 0x4addbf
lea eax, [ebp - 0x184]
call fcn.004acf48
push dword [ebp - 0x184]
lea eax, [ebp - 0x188]
call fcn.004acf48
push dword [ebp - 0x188]
lea eax, [ebp - 0x18c]
call fcn.004acf48
push dword [ebp - 0x18c]
mov eax, dword [0x4b3f44]
mov edx, 3
call fcn.00404bc4
mov edx, dword [0x4b3f44]
mov edx, dword [edx]
mov eax, 0x4adf34
call fcn.00404e48
test eax, eax
jne 0x4addfc
mov edx, dword [0x4b3f44]
mov edx, dword [edx]
lea eax, [ebp - 0x190]
mov ecx, 0x4adf34
call fcn.00404b50
mov edx, dword [ebp - 0x190]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4ade0b
mov edx, dword [0x4b3f44]
mov edx, dword [edx]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x194]
call fcn.004ad564
lea eax, [ebp - 0x194]
mov edx, 0x4adf48
call fcn.00404b0c
mov edx, dword [ebp - 0x194]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, esi
call fcn.00403a70
mov eax, dword [0x4b40f8]
mov eax, dword [eax]
call fcn.0045e7c8
call fcn.004ad624
mov eax, esi
call fcn.00403a70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ade77
lea eax, [ebp - 0x194]
mov edx, 0x25
call fcn.00404868
ret