Function at 0x4bce01
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff830
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0051fd59
test eax, eax
jne 0x4bce29
push 0
call fcn.004172e2
jmp 0x4bd31d
push 0x3e7
lea eax, [ebp - 0x3e8]
push eax
call fcn.0042e6b1
mov edx, dword [ebx + 0x6bc]
sub edx, 1
jb 0x4bce53
je 0x4bce77
dec edx
je 0x4bcfb0
jmp 0x4bd2b1
push dword [ebx + 0xb6c]
push 0
call fcn.004bd326
push eax
push 0x3e7
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.0042e5e3
jmp 0x4bd2b1
lea eax, [ebx + 8]
mov edi, eax
lea esi, [ebp - 0x3e8]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0xb6c]
lea eax, [ebp - 0x3e8]
push eax
call fcn.004bccfd
xor esi, esi
mov eax, dword [ebx + 0x674]
test eax, eax
je 0x4bcec5
mov eax, dword [eax + 0x40]
inc esi
test eax, eax
jne 0x4bcebd
push esi
push str.___d_
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3e8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [ebx + 0x10c], 0
je 0x4bcf2e
lea eax, [ebx + 0x10c]
push eax
call fcn.0054e28c
pop ecx
cmp eax, 3
jbe 0x4bcf2e
push 0x569e08
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e1b0
add esp, 8
lea ecx, [ebx + 0x10c]
push ecx
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054e1b0
add esp, 8
cmp byte [ebx + 0x26a], 0
je 0x4bd2b1
lea edx, [ebx + 0x26a]
mov edi, edx
lea esi, [ebp - 0x7d0]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xf
lea eax, [ebp - 0x7d0]
push eax
call fcn.0050e7f8
cmp byte [ebp - 0x7d0], 0
je 0x4bd2b1
push 0x569e0b
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e1b0
add esp, 8
lea ecx, [ebp - 0x7d0]
push ecx
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054e1b0
add esp, 8
jmp 0x4bd2b1
cmp dword [ebx + 0x6c0], 1
jne 0x4bd184
test esi, esi
je 0x4bd056
cmp dword [esi + 0x3f8], 0
je 0x4bd056
mov edx, dword [esi + 0x3f8]
cmp byte [edx], 0
je 0x4bd056
push dword [esi + 0x3f8]
push 0x64
lea edi, [ebx + 0x206]
push edi
call fcn.0042e5e3
lea eax, [ebx + 8]
push edi
mov edi, eax
lea esi, [ebp - 0x3e8]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push dword [ebx + 0xb6c]
lea eax, [ebp - 0x3e8]
push eax
call fcn.004bccfd
push edi
push 0x569e0f
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3e8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4bd114
push dword [ebx + 0xb6c]
lea eax, [ebp - 0x3e8]
push eax
lea edx, [ebx + 8]
push edx
call fcn.0049581d
test eax, eax
je 0x4bd10d
push 0x21
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.0054e1ec
add esp, 8
test eax, eax
je 0x4bd08a
inc eax
test eax, eax
je 0x4bd104
cmp byte [eax], 0
je 0x4bd104
push eax
push 0x64
lea esi, [ebx + 0x206]
push esi
call fcn.0042e5e3
lea eax, [ebx + 8]
push esi
mov edi, eax
lea esi, [ebp - 0x3e8]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push dword [ebx + 0xb6c]
lea eax, [ebp - 0x3e8]
push eax
call fcn.004bccfd
push esi
push 0x569e16
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3e8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4bd114
mov byte [ebp - 0x3e8], 0
jmp 0x4bd114
mov byte [ebp - 0x3e8], 0
cmp byte [ebp - 0x3e8], 0
jne 0x4bd2b1
lea eax, [ebx + 8]
push eax
push 0x3e7
lea edx, [ebp - 0x3e8]
push edx
call fcn.0042e5e3
push dword [ebx + 0xb6c]
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.004bccfd
cmp byte [ebx + 0x206], 0
je 0x4bd2b1
lea eax, [ebx + 0x206]
push eax
push 0x569e1d
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3e8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4bd2b1
cmp dword [ebx + 0x6c0], 2
jne 0x4bd2b1
test esi, esi
je 0x4bd25c
mov eax, dword [esi]
cmp dword [eax], 0
je 0x4bd25c
cmp dword [esi + 0x3f8], 0
je 0x4bd25c
push dword [esi + 0x3f8]
mov edx, dword [esi]
push dword [edx]
push 0x569e24
lea ecx, [ebp - 0x3e8]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea eax, [ebp - 0x3e8]
push eax
push 0x64
lea edx, [ebx + 0x206]
push edx
call fcn.0042e5e3
push esi
mov esi, 0x569e2b
lea edi, [ebp - 0x3e8]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
push dword [ebx + 0xb6c]
lea edx, [ebp - 0x3e8]
push edx
call fcn.004bccfd
mov ecx, dword [esi + 0x3f8]
cmp byte [ecx], 0
je 0x4bd242
push dword [esi + 0x3f8]
mov eax, dword [esi]
push dword [eax]
push str.___s__s_
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3e8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x4bd2b1
mov eax, dword [esi]
push dword [eax]
push str.temp_strlen_temp_____s_
lea edx, [ebp - 0x3e8]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4bd2b1
mov esi, 0x569e59
lea edi, [ebp - 0x3e8]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push dword [ebx + 0xb6c]
lea edx, [ebp - 0x3e8]
push edx
call fcn.004bccfd
cmp byte [ebx + 0x206], 0
je 0x4bd2b1
lea ecx, [ebx + 0x206]
push ecx
push 0x569e63
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054e28c
pop ecx
lea edx, [ebp - 0x3e8]
add eax, edx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [ebp - 0x3e8], 0
je 0x4bd316
push 0x3e7
lea ecx, [ebp - 0x7d0]
push ecx
call fcn.0042e6b1
push 0x3e7
lea eax, [ebp - 0x7d0]
push eax
push dword [ebx]
call sub.USER32.dll_GetWindowTextA
lea eax, [ebp - 0x3e8]
lea edx, [ebp - 0x7d0]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4bd306
test cl, cl
je 0x4bd316
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4bd306
add eax, 2
add edx, 2
test cl, cl
jne 0x4bd2ea
je 0x4bd316
lea eax, [ebp - 0x3e8]
push eax
push dword [ebx]
call sub.USER32.dll_SetWindowTextA
push 0
call fcn.004172e2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8