Function at 0x40a6d6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x46600c]
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.0043d260
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 0x40aaa2
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40aaa2
xor eax, eax
lea ecx, [ebp - 0x248]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00401fbc
mov edi, str.__DSPT
lea ecx, [ebp - 0x248]
mov edx, edi
call fcn.0040c190
mov edx, edi
lea ecx, [ebp - 0x248]
call fcn.0040c220
mov ecx, dword [ebp - 0x238]
test ecx, ecx
jne 0x40a7d7
test esi, esi
je 0x40a926
push 0x4597c8
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x230]
push 0x27fc
push eax
call fcn.00403463
mov ecx, eax
call fcn.0041c0dd
mov edi, 0x459878
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004025c2
cmp dword [ebp - 0x21c], 8
jmp 0x40a8ff
push 8
pop ebx
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40a813
mov edi, 0x4597ec
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x248]
call fcn.004025c2
mov edi, str.__DSPT
lea ecx, [ebp - 0x248]
call fcn.0040efc0
test al, al
jne 0x40a931
lea ecx, [ebp - 0x248]
call fcn.00410e30
test al, al
jne 0x40a931
test esi, esi
je 0x40a926
lea eax, [ebp - 0x230]
push 0x27fd
push eax
call fcn.00403463
mov ecx, eax
call fcn.0041c0dd
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.004025c2
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004025c2
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.00414240
mov ecx, eax
cmp dword [eax + 0x14], ebx
jb 0x40a8ba
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004025c2
lea ecx, [ebp - 0x278]
call fcn.0040203f
mov edi, 0x459878
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004025c2
push 0x4597c8
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x230]
call fcn.0040203f
lea ecx, [ebp - 0x248]
jmp 0x40ab38
lea ecx, [ebp - 0x2ac]
call fcn.0040333e
and dword [ebp - 0x250], 0
lea ecx, [ebp - 0x2ac]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00412b00
test al, al
jne 0x40aa7a
test esi, esi
je 0x40aa5f
lea eax, [ebp - 0x230]
push 0x27fe
push eax
call fcn.00403463
mov ecx, eax
call fcn.0041c0dd
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.004025c2
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004025c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x278]
call fcn.00414240
mov ecx, eax
cmp dword [eax + 0x14], ebx
jb 0x40a9f3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004025c2
lea ecx, [ebp - 0x278]
call fcn.0040203f
mov edi, 0x459878
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004025c2
push 0x4597c8
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x230]
call fcn.0040203f
lea ecx, [ebp - 0x260]
call fcn.0040203f
lea ecx, [ebp - 0x2ac]
call fcn.00412860
jmp 0x40a926
lea ecx, [ebp - 0x260]
call fcn.0040203f
lea ecx, [ebp - 0x2ac]
call fcn.00412860
lea ecx, [ebp - 0x248]
call fcn.0040203f
mov al, 1
jmp 0x40ab3f
xor eax, eax
lea ecx, [ebp - 0x230]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00401fbc
cmp dword [ebp - 0x220], 0
jne 0x40ab32
test esi, esi
je 0x40ab32
push 0x4597c8
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x260]
push 0x27fc
push eax
call fcn.00403463
mov ecx, eax
call fcn.0041c0dd
mov edi, 0x459878
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x260]
call fcn.004025c2
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push 0
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x260]
call fcn.0040203f
lea ecx, [ebp - 0x230]
call fcn.0040203f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
leave
ret