Function at 0x40ae27
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x2d4
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push 0x20a
xor ebx, ebx
lea eax, [ebp + 0x44]
push ebx
push eax
mov edi, ecx
call fcn.00432b90
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call esi
push 0x3eb
push dword [edi + 4]
mov dword [ebp - 0x54], eax
call esi
cmp dword [ebp - 0x54], ebx
mov esi, eax
mov dword [ebp - 0x50], esi
je 0x40b11d
push 0x104
lea eax, [ebp + 0x44]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40b11d
lea eax, [ebp + 0x44]
lea ecx, [ebp + 0xc]
mov word [ebp + 0x24c], bx
call fcn.0040118b
lea eax, [ebp + 0xc]
push 0x444184
push eax
call fcn.0040c8c8
pop ecx
pop ecx
mov ecx, dword [ebp + 0x20]
cmp ecx, ebx
jne 0x40af26
cmp esi, ebx
je 0x40af1e
push 0x443e20
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x27fc
call fcn.004050db
lea ecx, [ebp + 0x28]
call fcn.0040ffe4
push 0x443f10
lea eax, [ebp + 0x28]
push eax
call fcn.0040201c
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x40af05
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [ebp + 0x28]
call fcn.00401451
lea esi, [ebp + 0xc]
jmp 0x40b18c
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x40af32
lea eax, [ebp + 0x10]
lea ebx, [eax + ecx*2]
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x58]
call fcn.00401f75
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
xor ebx, ebx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
call fcn.0040bf73
cmp word [eax], 0x5c
je 0x40af6c
push 0x443fb4
mov eax, esi
push eax
call fcn.0040201c
lea eax, [ebp + 0xc]
push eax
call fcn.0040d3a4
test al, al
pop ecx
jne 0x40b019
lea ecx, [ebp + 0xc]
call fcn.0040db62
test al, al
jne 0x40b019
cmp dword [ebp - 0x50], ebx
je 0x40af1e
push 0x27fd
call fcn.004050db
lea ecx, [ebp + 0x28]
call fcn.0040ffe4
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0xc]
lea esi, [ebp + 0x28]
call fcn.0040203a
push 0x444184
mov eax, esi
push eax
call fcn.0040201c
call fcn.0040deb8
push eax
lea ecx, [ebp - 0x80]
call fcn.0040dec3
pop ecx
push 0xffffffffffffffff
push ebx
call fcn.0040203a
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.00401451
push 0x443f10
lea eax, [ebp + 0x28]
push eax
call fcn.0040201c
push 0x443e20
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x40b00a
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0xc2
push dword [ebp - 0x50]
jmp 0x40af0d
lea eax, [ebp - 0x4c]
call fcn.00409640
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp + 8], 7
mov dword [ebp + 4], ebx
mov word [ebp - 0xc], bx
call fcn.0040f246
test al, al
jne 0x40b0fb
cmp dword [ebp - 0x50], ebx
je 0x40b0e3
push 0x27fe
call fcn.004050db
lea ecx, [ebp + 0x28]
call fcn.0040ffe4
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0xc]
lea esi, [ebp + 0x28]
call fcn.0040203a
push 0x444184
mov eax, esi
push eax
call fcn.0040201c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040dec3
pop ecx
push 0xffffffffffffffff
push ebx
call fcn.0040203a
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.00401451
push 0x443f10
lea eax, [ebp + 0x28]
push eax
call fcn.0040201c
push 0x443e20
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x40b0c8
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0xc2
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [ebp + 0x28]
call fcn.00401451
push ebx
push 1
lea esi, [ebp - 0x10]
call fcn.00401451
lea edi, [ebp - 0x4c]
call fcn.0040f220
jmp 0x40af1e
push ebx
push 1
lea esi, [ebp - 0x10]
call fcn.00401451
lea edi, [ebp - 0x4c]
call fcn.0040f220
push ebx
push 1
lea esi, [ebp + 0xc]
call fcn.00401451
mov al, 1
jmp 0x40b196
lea eax, [ebp + 0x44]
lea ecx, [ebp + 0x28]
mov word [ebp + 0x24c], bx
call fcn.0040118b
cmp dword [ebp + 0x3c], ebx
jne 0x40b189
cmp esi, ebx
je 0x40b189
push 0x443e20
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x27fc
call fcn.004050db
lea ecx, [ebp - 0x10]
call fcn.0040ffe4
push 0x443f10
lea eax, [ebp - 0x10]
push eax
call fcn.0040201c
cmp dword [ebp + 8], 8
mov eax, dword [ebp - 0xc]
jae 0x40b170
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea esi, [ebp - 0x10]
call fcn.00401451
lea esi, [ebp + 0x28]
push ebx
push 1
call fcn.00401451
xor al, al
mov ecx, dword [ebp + 0x250]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
add ebp, 0x254
leave
ret