Function at 0x45695c
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x456991
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x60], ebx
lea eax, [esp + 0x58]
xorps xmm0, xmm0
lea esi, [edi + 0x6c]
push eax
push dword [esi]
movdqu xmmword [esp + 0x60], xmm0
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x58], ebx
jne 0x4569ca
cmp dword [esp + 0x60], ebx
jne 0x4569ca
cmp dword [esp + 0x5c], ebx
jne 0x4569ca
cmp dword [esp + 0x64], ebx
je 0x456d84
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x4569e8
push ecx
push dword [esp + 0x68]
mov ecx, eax
push dword [esp + 0x68]
call fcn.004150a8
jmp 0x4569ea
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
mov dword [edi + 0x60], eax
call fcn.0041504e
xor eax, eax
push 0x7fe
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push ebx
push eax
call fcn.004db6f0
add esp, 0xc
lea eax, [esp + 0x78]
push 0x400
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [edi + 0x90]
mov edx, 0xff
cmp dword [edi + 0x168], ebx
mov ebx, ecx
je 0x456a42
movzx eax, cx
or eax, 0xffffff00
jmp 0x456a4a
movzx eax, cl
or eax, 0xffff9900
shr ebx, 8
xorps xmm0, xmm0
and ebx, edx
shl eax, 8
or ebx, eax
shr ecx, 0x10
lea eax, [esp + 0x68]
shl ebx, 8
push eax
push 0
and ecx, edx
push 0xb2
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
or ebx, ecx
mov dword [esp + 0x4c], ebx
movdqu xmmword [esp + 0x78], xmm0
call esi
xor ecx, ecx
lea eax, [esp + 0x28]
push eax
push ecx
push 0x434
push dword [edi + 0x6c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
call esi
mov esi, dword [esp + 0x2c]
mov eax, esi
sub eax, dword [esp + 0x28]
test eax, eax
jle 0x456c42
cmp dword [edi + 0x168], 0
je 0x456c42
push dword [esp + 0x28]
lea eax, [esp + 0x10]
lea ebx, [edi + 0x6c]
push eax
mov ecx, ebx
call fcn.004590c2
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetCaretPos]
mov ecx, dword [esp + 0x14]
lea eax, [edi + 1]
cmp ecx, eax
jg 0x456b34
mov edi, ecx
lea eax, [esp + 0x30]
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.004590c2
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test ecx, ecx
jns 0x456b34
lea eax, [esi - 1]
mov ecx, ebx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004590c2
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
add ecx, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x6c]
lea edi, [ecx + 1]
mov eax, dword [esp + 0x70]
dec ebx
sub eax, dword [esp + 0x68]
add ebx, dword [esp + 0xc]
cmp ecx, eax
mov esi, dword [esp + 0x74]
cmovg ecx, eax
mov dword [esp + 0xc], 0xff316ac5
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004152bc
mov ecx, dword [esp + 0x1c]
sub esi, ebx
push esi
inc ecx
sub edi, ecx
push edi
push ebx
push ecx
push dword [eax + 4]
push dword [esp + 0x34]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
mov ecx, dword [esp + 0x24]
test eax, eax
push dword [esp + 0x34]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
cmovne ecx, eax
mov ebx, vtable.Gdiplus::Brush.0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], ebx
call edi
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
call fcn.004152bc
movss xmm2, dword [0x52c0d0]
mov esi, eax
push ecx
push ecx
push 0
push 0x50f718
lea ecx, [esp + 0x4c]
call fcn.0041532d
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
and dword [esp + 0x48], 0
and dword [esp + 0x4c], 0
push esi
movd xmm0, ecx
mov ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x70]
cvtdq2ps xmm0, xmm0
push 0
movss dword [esp + 0x58], xmm0
movd xmm0, ecx
lea ecx, [esp + 0x50]
push ecx
cvtdq2ps xmm0, xmm0
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x38]
movss dword [esp + 0x6c], xmm0
call fcn.004151cf
push dword [esp + 0x3c]
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push dword [esp + 0x34]
mov dword [esp + 0x34], ebx
call edi
jmp 0x456d7a
lea edi, [esp + 0x78]
xor esi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x456c4b
sub edi, ecx
sar edi, 1
test edi, edi
jle 0x456d0f
mov ecx, dword [esp + 0xc]
lea eax, [edi - 1]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004590c2
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004152bc
movss xmm2, dword [0x52c0d0]
mov esi, eax
push ecx
push ecx
xor eax, eax
lea ecx, [esp + 0x1c]
push eax
push 0x50f718
call fcn.0041532d
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
and dword [esp + 0x48], 0
and dword [esp + 0x4c], 0
push esi
movd xmm0, ecx
xor esi, esi
mov ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x70]
cvtdq2ps xmm0, xmm0
push esi
movss dword [esp + 0x58], xmm0
movd xmm0, ecx
lea ecx, [esp + 0x50]
push ecx
cvtdq2ps xmm0, xmm0
push eax
push edi
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x38]
movss dword [esp + 0x6c], xmm0
call fcn.004151cf
push dword [esp + 0x14]
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push dword [esp + 0x40]
mov dword [esp + 0x40], vtable.Gdiplus::Brush.0
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x15c], esi
je 0x456d7a
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetCaretPos]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push esi
push ecx
mov dword [esp], 0x3f800000
push ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
add eax, 0xfffffffe
add eax, ecx
push eax
push dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [esp + 0x34]
call dword [sym.imp.gdiplus.dll_GdipDrawLineI]
push dword [esp + 0xc]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [esp + 0x20]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret