Function at 0x40aa7a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x218]
mov edi, ecx
push 0
push eax
call fcn.00436b80
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 ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x40ae30
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40ae30
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x10], ax
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
xor ebx, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], ebx
push eax
call fcn.004016c8
mov edi, str.__r_n
lea ecx, [ebp - 0x248]
mov edx, edi
call fcn.0040c6b0
mov edx, edi
lea ecx, [ebp - 0x248]
call fcn.0040c720
mov ecx, dword [ebp - 0x238]
test ecx, ecx
jne 0x40abbf
test esi, esi
je 0x40abb4
push 0x44c794
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x230]
push 0x27fc
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
mov edi, 0x44c808
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004022af
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004017f1
lea ecx, [ebp - 0x248]
jmp 0x40aee0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40abf9
mov edi, 0x44c7d4
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x248]
call fcn.004022af
mov edi, str.__r_n
lea ecx, [ebp - 0x248]
call fcn.0040d540
test al, al
jne 0x40acca
lea ecx, [ebp - 0x248]
call fcn.0040e0a0
test al, al
jne 0x40acca
test esi, esi
je 0x40abb4
lea eax, [ebp - 0x230]
push 0x27fd
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040220d
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004022af
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea ecx, [ebp - 0x278]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.00410cc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040220d
push ebx
push 1
lea ecx, [ebp - 0x278]
call fcn.004017f1
mov edi, 0x44c808
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004022af
push 0x44c794
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40ab84
lea ecx, [ebp - 0x2ac]
call fcn.00403282
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x2ac]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x250], ebx
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ffc0
test al, al
jne 0x40ae02
test esi, esi
je 0x40ade4
lea eax, [ebp - 0x230]
push 0x27fe
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040220d
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004022af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x278]
call fcn.00410cc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040220d
push ebx
push 1
lea ecx, [ebp - 0x278]
call fcn.004017f1
mov edi, 0x44c808
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004022af
push 0x44c794
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004017f1
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004017f1
lea ecx, [ebp - 0x2ac]
call fcn.0040ff10
jmp 0x40abb4
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004017f1
lea ecx, [ebp - 0x2ac]
call fcn.0040ff10
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.004017f1
mov al, 1
jmp 0x40aeea
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x10], ax
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
xor ebx, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], ebx
push eax
call fcn.004016c8
cmp dword [ebp - 0x220], ebx
jne 0x40aeda
test esi, esi
je 0x40aeda
push 0x44c794
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x260]
push 0x27fc
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
mov edi, 0x44c808
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x260]
call fcn.004022af
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push ebx
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004017f1
lea ecx, [ebp - 0x230]
push ebx
push 1
call fcn.004017f1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435a0a
mov esp, ebp
pop ebp
ret