Function at 0x42cb60
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4488e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], ebx
cmp edi, ebx
je 0x42cc84
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42cc7c
push ebp
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0x1c]
mov ebp, eax
lea eax, [ebp + 2]
cmp eax, ecx
ja 0x42cbdf
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::erase_unsigned_int__unsigned_int_]
jmp 0x42cc36
sub eax, ecx
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov edx, dword [eax]
sub edx, ecx
cmp edx, esi
ja 0x42cbf6
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
jbe 0x42cc36
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea edi, [eax + esi]
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42cc32
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push ebx
lea eax, [ecx + edx*2]
push eax
call fcn.00407360
add esp, 0xc
lea ecx, [esp + 0x14]
push edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42cc6c
mov cl, byte [eax - 1]
cmp cl, bl
je 0x42cc5e
cmp cl, 0xff
je 0x42cc5e
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42cc71
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x18]
jmp 0x42cc71
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
inc ebp
push ebp
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop ebp
mov edi, dword [esp + 0x14]
cmp edi, ebx
jne 0x42cc8a
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, dword [esp + 0x30]
mov dl, byte [esp + 0x34]
push edi
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, esi
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x42cce9
mov al, byte [ecx - 1]
cmp al, bl
je 0x42ccdd
cmp al, 0xff
je 0x42ccdd
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret