Function at 0x414bf0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0381
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
mov ebx, dword [esp + 0x260]
test ebx, ebx
je 0x414f0e
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414f0e
call fcn.004148f0
mov cl, byte [eax + 0x1a]
test cl, cl
jne 0x414c44
mov cl, byte [eax + 0x19]
test cl, cl
jne 0x414c44
mov ecx, eax
call fcn.00415190
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x58]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esp + 0x270]
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00414a90
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x414c93
mov eax, 0x4a3668
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [esp + 0x48]
call fcn.00401080
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x13]
push 0
stosw word es:[edi], ax
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
stosb byte es:[edi], al
call fcn.00401080
mov edi, 0x4dacd8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00401210
test al, al
je 0x414d1a
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4dacd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], 0
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x268], 0
call fcn.00401080
mov edi, 0x4dacd8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401210
test al, al
je 0x414d7e
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4dacd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
push 5
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov byte [esp + 0x26c], 1
call ebx
mov esi, eax
test esi, esi
je 0x414e97
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ebp, eax
test ebp, ebp
je 0x414e88
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x158]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x15c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, 0x4cdd80
mov edx, dword [edi]
lea eax, [esp + 0x158]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x414dfa
add edi, 4
cmp edi, str.static
jl 0x414dd5
jmp 0x414e88
lea ecx, [esp + 0x54]
push 0x104
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x54]
lea eax, [esp + 0x34]
push edx
push ebp
push eax
call fcn.00414a90
add esp, 0xc
mov ecx, dword [0x4a366c]
xor edi, edi
push ecx
push edi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x270], 2
call fcn.00402a60
mov eax, dword [esp + 0x38]
mov byte [esp + 0x264], 1
cmp eax, edi
je 0x414e67
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414e5e
cmp al, 0xff
je 0x414e5e
dec al
mov byte [ecx], al
jmp 0x414e67
push ecx
call fcn.00495b1e
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], edi
cmp eax, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
jne 0x414e80
mov eax, 0x4a3668
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x414d9b
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test ecx, ecx
je 0x414ebe
mov al, byte [ecx - 1]
test al, al
je 0x414eb4
cmp al, 0xff
je 0x414eb4
dec al
mov byte [ecx - 1], al
jmp 0x414ebe
dec ecx
push ecx
call fcn.00495b1e
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
je 0x414f0e
mov al, byte [ecx - 1]
test al, al
je 0x414f04
cmp al, 0xff
je 0x414f04
dec al
pop ebx
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
add esp, 0x258
ret
dec ecx
push ecx
call fcn.00495b1e
add esp, 4
mov ecx, dword [esp + 0x250]
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret