Function at 0x4705f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x42c
push ebp
push esi
push str.PROP_PSKIN
push eax
call dword [sym.imp.USER32.dll_GetPropA]
mov esi, dword [esp + 0x43c]
mov ebp, eax
cmp dword [esi], 4
je 0x470623
pop esi
xor al, al
pop ebp
add esp, 0x42c
ret 8
mov ecx, dword [esi + 0x14]
push ebx
push edi
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [esi + 0x1c]
lea edx, [esp + 0x24]
push ebx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [esi + 0x18]
push edi
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x18]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x3c]
stosw word es:[edi], ax
push 0x400
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 4]
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.004717a0
lea ecx, [esp + 0x18]
mov edi, eax
push ecx
mov ecx, edi
call fcn.00478e10
mov edi, dword [edi + 4]
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x4706dd
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jl 0x4706dd
lea eax, [esp + 0x34]
jmp 0x4706e5
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov edi, dword [eax]
mov ecx, ebp
call fcn.004717a0
cmp edi, dword [eax + 4]
jne 0x47071e
mov ecx, ebp
call fcn.004717a0
xor ecx, ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.00476150
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x10]
jmp 0x470721
mov edi, dword [edi + 0x10]
mov eax, dword [esi + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, 0xfffffffb
je 0x4707a3
test byte [esi + 0x10], 1
je 0x47073c
mov eax, dword [edi + 0x70]
jmp 0x47073f
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.0047b8f0
mov eax, dword [esi + 0x10]
add esp, 0xc
test al, 1
je 0x470769
mov edx, dword [esi + 0x20]
mov ecx, dword [ebx]
add edx, 2
add ecx, 2
mov dword [esi + 0x20], edx
mov dword [ebx], ecx
test al, 4
je 0x470777
mov ecx, dword [edi + 0x64]
mov edx, dword [esi + 0x18]
push ecx
push edx
jmp 0x47077f
mov eax, dword [edi + 0x60]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x24]
push 0x25
lea eax, [esp + 0x40]
push edx
push eax
call ebp
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test byte [esi + 0xc], 4
jne 0x4707b3
test byte [esi + 0x10], 0x10
je 0x47083c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
sub eax, ebp
sub eax, ebx
mov edi, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov ecx, 2
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, edi
push ecx
sub eax, edx
cdq
sub eax, edx
mov edx, 2
sar eax, 1
sub edx, eax
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x440]
push 0
push eax
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0x18], eax
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x42c
ret 8