Function at 0x4023f9
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4132fc
call fcn.00411b70
sub esp, 0xfc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004015b6
lea eax, [ebp - 0x24]
lea edi, [esi + 4]
push eax
xor ebx, ebx
push dword [edi]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
push 1
lea eax, [ecx + 0xfa]
mov dword [ebp - 0x1c], eax
sub eax, ecx
push edx
push eax
push dword [ebp - 0x20]
push ecx
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
lea eax, [ebp - 0x50]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x4c]
add dword [esi + 0x20], 5
sub eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
push dword [0x41d254]
lea eax, [ebp - 0x40]
push dword [0x41d1cc]
push eax
call fcn.00406754
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], ebx
call fcn.00405fb2
add esp, 0x14
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x4024c3
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]
lea ecx, [esi + 0x2c]
push ecx
push eax
push dword [edi]
mov ecx, esi
call fcn.004013b8
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x64]
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__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add dword [esi + 0x20], 5
push dword [0x41d258]
lea eax, [ebp - 0x40]
mov dword [ebp + 8], ebx
push dword [0x41d1cc]
push eax
call fcn.00406754
push eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 4], 2
call fcn.00405fb2
add esp, 0x14
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [edi]
mov byte [ebp - 4], 5
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x30], ebx
cmp eax, ebx
mov dword [ebp - 0x2c], ebx
jne 0x40255b
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]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x9c]
cmp eax, 0xffffffff
jne 0x402572
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x2c]
push ebx
mov dword [ebp - 0xc0], eax
lea ecx, [eax + ecx + 2]
mov eax, dword [ebp - 0x30]
push ecx
mov dword [ebp - 0xb8], ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push ebx
mov dword [ebp - 0xc4], 4
mov dword [ebp - 0xbc], eax
call fcn.004019b8
push ebx
push 0x50000001
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push ecx
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004019b8
push dword [edi]
lea ecx, [ebp + 8]
call fcn.004016e0
mov eax, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x48]
and dword [ebp + 8], 0
push 0
lea ecx, [eax + 0x10]
add eax, 0xfffffffe
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
add eax, 4
push ecx
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], ecx
add edx, 0xfffffffc
lea eax, [esi + 0x64]
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
mov dword [ebp - 0xac], edx
mov dword [ebp + 0xc], eax
call fcn.004019b8
push 0x200
push 0x500000a0
push 0
push ecx
lea eax, [ebp - 0xb4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004019b8
push dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.004021b9
mov eax, dword [esi + 0x28]
push 1
push eax
mov eax, dword [ebp + 0xc]
push 0x30
push dword [eax]
call ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x84], 3
add eax, 0xb
mov dword [ebp - 0x7c], 0x56
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
push dword [0x41d240]
mov dword [ebp - 0x80], eax
lea ecx, [eax + 0x17]
lea eax, [ebp - 0x64]
push dword [0x41d1cc]
mov dword [ebp - 0x78], ecx
push eax
call fcn.00406754
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.00405fb2
add esp, 0x14
mov dword [ebp - 0x10], eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov byte [ebp - 4], 7
call fcn.004019b8
mov ecx, dword [ebp - 0x10]
push 0
push 0x50000000
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push ecx
lea eax, [ebp - 0x84]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004019b8
push dword [edi]
lea ecx, [esi + 0x58]
call fcn.00402167
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
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__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0x4d
push 0xfffffffffffffff4
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x2c]
push 1
push eax
push 0x30
push dword [esi + 0x58]
call ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x7c]
push dword [0x41d24c]
add ecx, 4
lea edx, [eax + 0x17]
mov dword [ebp - 0x70], eax
push dword [0x41d1cc]
mov dword [ebp - 0x74], ecx
lea eax, [ebp - 0x64]
add ecx, 0x4a
push eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], ecx
call fcn.00406754
push eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
push eax
call fcn.00405fb2
add esp, 0x14
mov dword [ebp - 0x10], eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov byte [ebp - 4], 9
call fcn.004019b8
mov ecx, dword [ebp - 0x10]
push 0
push 0x50000000
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push ecx
lea eax, [ebp - 0x74]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004019b8
push dword [edi]
lea ecx, [esi + 0x5c]
call fcn.00402167
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
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__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esi + 0x2c]
push 1
push eax
push 0x30
push dword [esi + 0x5c]
call ebx
push 1
push 0xfffffffffffffff4
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x6c]
push dword [0x41d250]
add ecx, 4
lea edx, [eax + 0x17]
mov dword [ebp - 0x90], eax
push dword [0x41d1cc]
mov dword [ebp - 0x94], ecx
lea eax, [ebp - 0x64]
add ecx, 0x4a
push eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x8c], ecx
call fcn.00406754
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xa
call fcn.00405fb2
add esp, 0x14
mov dword [ebp - 0x10], eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov byte [ebp - 4], 0xb
call fcn.004019b8
mov ecx, dword [ebp - 0x10]
push 0
push 0x50000000
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push ecx
mov ecx, esp
lea eax, [ebp - 0x94]
mov dword [ebp - 0x14], esp
push eax
call fcn.004019b8
push dword [edi]
lea ecx, [esi + 0x60]
call fcn.00402167
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
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__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esi + 0x2c]
push 1
push eax
push 0x30
push dword [esi + 0x60]
call ebx
push 2
push 0xfffffffffffffff4
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowLongW]
add dword [esi + 0x20], 0x1c
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x54]
push 1
add eax, ecx
pop ebx
mov dword [ebp - 0x18], eax
sub eax, dword [ebp - 0x20]
push ebx
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call section..text
push dword [0x41d234]
lea eax, [ebp - 0x108]
push dword [0x41d1cc]
push eax
call fcn.00406754
push eax
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 4], 0xc
call fcn.00405fb2
push 0x41d070
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xd
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ecx, dword [esi + 0x68]
mov byte [ebp - 4], 0xe
add ecx, 0x50
push ecx
push eax
lea eax, [ebp - 0xf8]
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
mov eax, dword [eax + 4]
add esp, 0x2c
test eax, eax
jne 0x402968
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]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
lea ecx, [ebp - 0xf8]
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__::_Tidy_bool_]
push ebx
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xd
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__::_Tidy_bool_]
push ebx
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0xc
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__::_Tidy_bool_]
push ebx
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x28], 0
je 0x4029cb
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_DeleteDC]
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0xa4]
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__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 8