Function at 0x431529
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor edi, edi
push edi
push edi
push 0xce
push dword [0x5010c8]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
push edi
push 0x4dd
push dword [0x5010c8]
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xb0
push dword [0x5010c8]
call esi
push edi
push edi
push 0xb
push dword [0x5010c8]
call esi
mov ebx, 0x5022d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
mov eax, dword [0x5010a4]
jae 0x4315ba
shl eax, 2
push dword [eax + 0x500c50]
push dword [eax + 0x500fa0]
push 0xffffffffffffffff
push edi
push dword [0x5010c8]
call fcn.004280b2
jmp 0x431705
shl eax, 2
push dword [eax + 0x500c50]
push dword [eax + 0x500fa0]
push 0xffffffffffffffff
push edi
push dword [0x5010c8]
call fcn.004280b2
push dword [0x5010c8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x431705
xor eax, eax
push 0x7fe
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push edi
push eax
call fcn.00442d2f
mov edi, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00442eef
add esp, 0x10
inc edi
push edi
push eax
push dword [0x5010c8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push dword [ebp - 4]
jmp 0x4316e9
mov edi, dword [ebp - 8]
sub edi, dword [ebp - 4]
push ebx
sar edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [0x5010c8]
add eax, edi
mov dword [ebp - 0x14], eax
call fcn.0042803f
push 0
push edi
push 0xc9
push dword [0x5010c8]
mov dword [ebp - 0x1c], eax
call esi
lea ecx, [ebp - 0x82c]
push ecx
push eax
push 0xc4
push dword [0x5010c8]
mov dword [ebp - 0x82c], 0x3ff
call esi
cmp eax, 1
jle 0x4316e1
push 0x3a
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ecx, eax
lea edx, [ebp - 0x82c]
sub eax, edx
sar eax, 1
neg ecx
sbb ecx, ecx
and ecx, eax
cmp dword [ebp - 0x1c], ecx
jle 0x4316e1
mov eax, dword [0x5010a4]
shl eax, 2
push dword [eax + 0x498ac4]
push dword [eax + 0x498abc]
push dword [ebp - 0x14]
push edi
push dword [0x5010c8]
call fcn.004280b2
mov eax, dword [ebp - 8]
push ebx
add eax, 2
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x431641
push dword [ebp - 4]
call fcn.00442f64
pop ecx
xor edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0xb1
push dword [0x5010c8]
call esi
push edi
push edi
push 0xce
push dword [0x5010c8]
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
je 0x43173f
sub ecx, eax
push ecx
push edi
push 0xb6
push dword [0x5010c8]
call esi
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x4dd
push dword [0x5010c8]
call esi
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
je 0x431771
movzx eax, ax
push edi
shl eax, 0x10
or eax, 4
push eax
push 0x114
push dword [0x5010c8]
call esi
push edi
push 1
push 0xb
push dword [0x5010c8]
call esi
push 5
push edi
push edi
push dword [0x5010c8]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebx
leave
ret