Function at 0x45976c
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 [0x5475b0]
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 0x4597a1
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 0x4597da
cmp dword [esp + 0x60], ebx
jne 0x4597da
cmp dword [esp + 0x5c], ebx
jne 0x4597da
cmp dword [esp + 0x64], ebx
je 0x459b84
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x4597f8
push ecx
push dword [esp + 0x68]
mov ecx, eax
push dword [esp + 0x68]
call fcn.00415755
jmp 0x4597fa
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
mov dword [edi + 0x60], eax
call fcn.004156fb
xor eax, eax
push 0x7fe
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push ebx
push eax
call fcn.004deff0
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 0x459852
movzx eax, cx
or eax, 0xffffff00
jmp 0x45985a
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 + 0x34]
push eax
push ecx
push 0x434
push dword [edi + 0x6c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
call esi
mov esi, dword [esp + 0x38]
mov eax, esi
sub eax, dword [esp + 0x34]
test eax, eax
jle 0x459a42
cmp dword [edi + 0x168], 0
je 0x459a42
push dword [esp + 0x34]
lea eax, [esp + 0x10]
lea ebx, [edi + 0x6c]
push eax
mov ecx, ebx
call fcn.0045be92
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 0x459944
mov edi, ecx
lea eax, [esp + 0x28]
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.0045be92
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test ecx, ecx
jns 0x459944
lea eax, [esi - 1]
mov ecx, ebx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0045be92
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 + 0x2c]
call fcn.00415969
mov ecx, dword [esp + 0x1c]
sub esi, ebx
inc ecx
push esi
sub edi, ecx
push edi
push ebx
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004156c2
push dword [esp + 0x2c]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov ebx, vtable.Gdiplus::Brush.0
mov dword [esp + 0x2c], ebx
call edi
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
call fcn.00415969
movss xmm2, dword [0x530bc8]
mov esi, eax
push ecx
push ecx
push 0
push 0x513740
lea ecx, [esp + 0x4c]
call fcn.004159da
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.0041587c
push dword [esp + 0x3c]
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call edi
jmp 0x459b7a
lea edi, [esp + 0x78]
xor esi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x459a4b
sub edi, ecx
sar edi, 1
test edi, edi
jle 0x459b0f
mov ecx, dword [esp + 0xc]
lea eax, [edi - 1]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0045be92
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00415969
movss xmm2, dword [0x530bc8]
mov esi, eax
push ecx
push ecx
xor eax, eax
lea ecx, [esp + 0x1c]
push eax
push 0x513740
call fcn.004159da
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.0041587c
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 0x459b7a
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.004d9731
mov esp, ebp
pop ebp
ret