Function at 0x42c740
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x462700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebx + 4]
push edi
push ecx
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f6f3
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x60], edi
call fcn.004317b0
mov eax, dword [ebx + 4]
add esp, 0x10
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c7b6
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.00401e15
push 2
push 0
push 0x456e38
lea ecx, [ebp - 0x58]
call fcn.0040a9d0
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c80f
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
push edx
call fcn.0040446b
push edi
call fcn.0043179b
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x42c983
mov eax, dword [ebp - 0x58]
push eax
jmp 0x42c97b
xor edi, edi
xor ecx, ecx
mov ebx, esi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], cx
cmp esi, 0xffffffff
jle 0x42c8e1
lea esp, [esp]
push ebx
push edi
lea eax, [ebp - 0x58]
xor edx, edx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], dx
call fcn.004021db
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x42c868
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00430677
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], edi
jae 0x42c89b
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00430bc0
add esp, 0xc
jmp 0x42c8a1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push 2
lea edi, [esi + 2]
push edi
push 0x456e38
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
call fcn.0040a9d0
mov esi, eax
mov ebx, esi
sub ebx, edi
cmp dword [ebp - 0x2c], 0
je 0x42c8d8
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0040446b
cmp esi, 0xffffffff
jg 0x42c830
mov eax, dword [ebp - 0x48]
sub eax, edi
test eax, eax
jle 0x42c93c
push eax
push edi
lea eax, [ebp - 0x58]
xor edx, edx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], dx
call fcn.004021db
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401651
mov esi, 8
cmp dword [ebp - 0x28], esi
jb 0x42c92e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00430677
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
push eax
call fcn.0040446b
jmp 0x42c941
mov esi, 8
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0043179b
add esp, 4
cmp dword [ebp - 0xc], esi
jb 0x42c95e
mov edx, dword [ebp - 0x20]
push edx
call fcn.00430677
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x44], esi
jb 0x42c983
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00430677
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313d1
mov esp, ebp
pop ebp
ret 4