Function at 0x4304e5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
je 0x430761
push ebx
inc edi
xor ecx, ecx
push 2
pop ebx
mov eax, edi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00536606
pop ecx
push edi
push eax
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
push ecx
push ecx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [ebp - 0xc], eax
mov ecx, 0x1000
xor eax, eax
cmp byte [esi + 0xbc], al
cmovne ecx, eax
mov eax, ecx
or eax, 0x4000
cmp byte [esi + 0xbd], 0
cmovne eax, ecx
push eax
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatFlags
mov ecx, dword [ebp - 0xc]
test eax, eax
cmovne ecx, eax
mov eax, dword [esi + 0xb8]
xor edi, edi
mov dword [ebp - 0xc], ecx
inc edi
test eax, eax
jne 0x430584
push eax
jmp 0x430590
cmp eax, edi
jne 0x43058b
push edi
jmp 0x430590
cmp eax, ebx
jne 0x4305a1
push ebx
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatTrimming
test eax, eax
je 0x4305ba
mov dword [ebp - 0xc], eax
jmp 0x4305ba
cmp eax, 3
jne 0x4305ba
push eax
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatTrimming
mov ecx, dword [ebp - 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xa0]
sub eax, 0
je 0x4305e4
sub eax, 1
je 0x4305d2
sub eax, 3
jne 0x4305f9
push edi
jmp 0x4305d3
push ebx
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x4305f9
mov dword [ebp - 0xc], eax
jmp 0x4305f9
push 0
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatAlign
mov ecx, dword [ebp - 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0xa4]
sub eax, ebx
je 0x430622
sub eax, 1
je 0x430610
sub eax, 1
jne 0x430637
push edi
jmp 0x430611
push ebx
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
test eax, eax
je 0x430637
mov dword [ebp - 0xc], eax
jmp 0x430637
push 0
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
mov ecx, dword [ebp - 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
cmp byte [esi + 0x40], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov edi, dword [ebx + 8]
mov dword [ebp + 0xc], ecx
je 0x430681
mov eax, dword [esi + 0x9c]
cmp eax, 2
je 0x430681
test eax, eax
jne 0x430669
mov ecx, dword [esi + 0x7c]
call fcn.004060f4
mov ecx, dword [esi + 0x34]
lea ecx, [eax + ecx*2]
sub edi, ecx
jmp 0x430681
cmp eax, 1
jne 0x430681
mov ecx, dword [esi + 0x7c]
call fcn.004060f4
mov edi, dword [ebx + 8]
sub edi, dword [esi + 0x34]
mov ecx, dword [ebp + 0xc]
sub edi, eax
cmp byte [esi + 0x43], 0
movd xmm0, ecx
lea ecx, [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x2c], xmm0
movd xmm0, dword [ebx + 4]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x28], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x24], xmm0
movd xmm0, dword [ebx + 0xc]
cvtdq2ps xmm0, xmm0
pop ebx
movss dword [ebp - 0x20], xmm0
je 0x430701
lea eax, [esi + 0x70]
push eax
call fcn.0042fbf9
cmp byte [esi + 0x4a], 0
jne 0x4306e2
push dword [esi + 0x74]
push dword [ebp - 0x18]
call sub.gdiplus.dll_GdipSetSolidFillColor
mov ecx, dword [ebp - 0x14]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x4306f2
mov eax, dword [esi + 0x84]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
jmp 0x430738
lea eax, [esi + 0x6c]
push eax
call fcn.0042fbf9
cmp byte [esi + 0x4a], 0
jne 0x430726
push dword [esi + 0x74]
push dword [ebp - 0x18]
call sub.gdiplus.dll_GdipSetSolidFillColor
mov ecx, dword [ebp - 0x14]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x84]
push dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 8]
push esi
call fcn.00430494
push dword [ebp - 0x18]
call sub.gdiplus.dll_GdipDeleteBrush
push 2
push esi
call fcn.00536249
pop ecx
pop ecx
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipDeleteStringFormat
pop edi
pop esi
leave
ret 8