Function at 0x405ce1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x40aa8c]
xor eax, dword [ebp + 4]
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x998], 0
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x268]
je 0x405d20
push eax
push 0x100
push 0xd
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x405d34
mov ecx, dword [esi + 0x9d0]
push 0x100
push eax
push dword [esi + 0x40]
call fcn.00406885
mov ecx, dword [esi + 0x9b4]
shl ecx, 1
shr ecx, 1
cmp eax, ecx
mov dword [ebp - 8], eax
jbe 0x405dab
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x20
lea eax, [ebp - 0x68]
push eax
push 0x214
push dword [esi]
call edi
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x568]
push eax
push 0x217
push dword [esi]
call edi
push dword [esi + 0x9b4]
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x368]
push ebx
push eax
call fcn.004020cf
add esp, 0x10
push 0x2000
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x368]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406064
test eax, eax
je 0x406064
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x10]
mov ecx, esi
call fcn.004033fa
test eax, eax
je 0x406064
test byte [esi + 0x9a0], 2
je 0x405f05
push dword [esi + 0x9a8]
mov ecx, esi
call fcn.00402e3d
push dword [esi + 0x9a8]
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00402e97
push dword [esi + 0x9a8]
mov ecx, esi
mov edi, eax
call fcn.00402e6a
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0x405ee6
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x405ee6
and dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], eax
jbe 0x405eda
mov dword [ebp - 0x1c], ebx
sub dword [ebp - 0x1c], edi
mov ebx, 0x4036c1
mov eax, dword [0x40aa48]
test eax, eax
je 0x405e60
lea ecx, [ebp - 0x468]
push ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx + edi]
push ecx
call eax
mov eax, dword [esi + 0x9bc]
imul eax, dword [esi + 0x9c0]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x468], cx
lea eax, [ebp - 0x468]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov ax, word [edi]
mov word [ebp - 0x20], ax
mov eax, dword [0x40aa58]
cmp eax, ecx
mov word [ebp - 0x1e], cx
je 0x405eda
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0x80000001
push 0
push ebx
call eax
mov eax, dword [0x40aa58]
test eax, eax
je 0x405ec3
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push ebx
call eax
cmp dword [ebp - 0x28], 0
je 0x405eda
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
inc edi
inc edi
cmp eax, dword [ebp - 0x14]
jb 0x405e46
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
je 0x406064
push dword [esi + 0x9a8]
mov ecx, esi
call fcn.00403046
push 0x10000
push dword [esi + 0x9a8]
mov ecx, esi
call fcn.00402ede
mov edi, dword [esi + 0x9c0]
imul edi, dword [esi + 0x9bc]
imul edi, dword [ebp - 8]
inc edi
inc edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405f43
push eax
push eax
push 0x804
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406064
push edi
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x268]
push eax
mov ecx, esi
call fcn.004053c9
mov eax, dword [0x40aa58]
and dword [ebp - 0x10], 0
test eax, eax
je 0x405fc0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x268]
push ecx
push 0x80000001
push ebx
mov edi, 0x401863
push edi
call eax
mov eax, dword [0x40aa58]
test eax, eax
je 0x405f96
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x268]
push ecx
push 0
push ebx
push edi
call eax
cmp dword [ebp - 0x10], 0
je 0x405fc0
push dword [ebp - 8]
lea eax, [ebp - 0x268]
push ebx
push eax
mov ecx, esi
call fcn.00403594
test eax, eax
je 0x405fde
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x10000
jmp 0x405fe1
push dword [ebp - 8]
lea eax, [ebp - 0x268]
push ebx
push eax
mov ecx, esi
call fcn.00403259
test eax, eax
je 0x405fde
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x405fe1
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x9a0]
test cl, 1
je 0x40601a
test eax, eax
je 0x405ff6
or byte [ebp - 0xa], 2
jmp 0x405ffa
or byte [ebp - 0xa], 4
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0xc]
mov ecx, esi
push dword [ebp - 8]
call fcn.00405c63
push 1
mov ecx, esi
call fcn.004037de
jmp 0x406046
test cl, 2
je 0x406046
neg eax
sbb eax, eax
push ebx
and eax, 0xfffa0000
lea ecx, [ebp - 0x268]
push ecx
add eax, 0x80000
push eax
push dword [ebp - 8]
mov ecx, esi
push dword [esi + 0x9a8]
call fcn.00404a34
xor edi, edi
push edi
push edi
push 0xc
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x9a0], 0xfffffffc
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00407e22
leave
ret