Function at 0x402580
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x214
lea eax, [esp + 0x218]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x228]
push edx
push eax
lea ecx, [esi + 0xb4]
push str.X_ld__Y_ld
push ecx
call sub.MFC42u.DLL_CString::Format
lea ebp, [esi + 0xc0]
add esp, 0x10
mov ecx, ebp
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esi + 0xc8]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esi + 0xbc]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esi + 0xc4]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esi + 0xb8]
call sub.MFC42u.DLL_CString::Empty
lea edx, [esp + 0x228]
push edx
call fcn.00402930
mov edi, eax
add esp, 4
test edi, edi
je 0x40285d
test esi, esi
jne 0x40261d
xor eax, eax
jmp 0x402620
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push eax
call ebx
mov edx, eax
push 0
push edi
mov dword [esp + 0x18], edx
call ebx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x402839
cmp edi, dword [esi + 0xe8]
je 0x402670
lea ecx, [esi + 0x208]
call fcn.00401980
mov edx, dword [esi + 0xe8]
push edx
call fcn.00402a10
push edi
mov dword [esi + 0xe8], edi
call fcn.00402a10
add esp, 8
push edi
push str.0x_08X
push ebp
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esi + 0xec]
mov ebp, 2
add esp, 0xc
xor eax, eax
cmp ecx, ebp
lea ebx, [esi + 0xc4]
sete al
add eax, 0x69
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CString::LoadStringW
lea ecx, [esp + 0x24]
push 0x100
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4026c7
lea edx, [esp + 0x24]
lea ecx, [esi + 0xc8]
push edx
call sub.MFC42u.DLL_CString::operator
lea eax, [esp + 0x24]
push 0x100
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4026ec
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0xbc]
call sub.MFC42u.DLL_CString::operator
cmp dword [esi + 0xec], 1
jge 0x402712
mov edx, dword [esi + 0xbc]
push str.edit
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40285d
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp dword [esi + 0xec], ebp
je 0x40272b
test al, 0x20
je 0x40285d
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x40274a
push 0x68
mov ecx, ebx
call sub.MFC42u.DLL_CString::LoadStringW
cmp dword [esi + 0xec], 1
jne 0x40275c
push 0x6b
mov ecx, ebx
call sub.MFC42u.DLL_CString::LoadStringW
mov al, byte [esi + 0xce]
test al, al
je 0x4027c3
push 0
push edi
lea ebx, [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
mov ecx, ebx
call fcn.004011f0
test al, al
je 0x402868
test esi, esi
jne 0x40278a
xor eax, eax
jmp 0x40278d
mov eax, dword [esi + 0x20]
push eax
push edi
mov ecx, ebx
call fcn.00401220
test al, al
je 0x402868
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x22c]
mov dword [esi + 0x260], ecx
mov dword [esi + 0x25c], edi
mov dword [esi + 0x264], edx
jmp 0x402868
lea eax, [esp + 0x24]
mov word [esp + 0x24], 0
push eax
push 0x100
push 0xd
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x24]
lea edi, [esi + 0xb8]
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x238]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x23c]
push edx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esi + 0x208]
call fcn.00401810
jmp 0x402868
lea ecx, [esi + 0x208]
call fcn.00401980
mov ecx, dword [esi + 0xe8]
push ecx
call fcn.00402a10
add esp, 4
mov dword [esi + 0xe8], 0
lea ecx, [esi + 0x208]
call fcn.00401980
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::UpdateData
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8