Function at 0x10018330
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x1002af03
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x100350dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp + 0x50], ecx
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x20], 0
jg 0x1001837b
jmp 0x100188fb
mov edx, dword [0x10035014]
mov dword [ebp + 0x44], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
add eax, 2
push eax
lea ecx, [ebp + 0x44]
call fcn.10005490
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0x20]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp + 0x44]
call fcn.10008c70
mov edx, dword [ebp + 0x44]
cmp dword [edx - 8], 0
jne 0x100183d1
mov dword [ebp], 1
jmp 0x100183d8
mov dword [ebp], 0
cmp dword [ebp], 0
je 0x100183f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x44]
call fcn.10002010
jmp 0x100188fb
mov dword [ebp + 0x48], 0
lea eax, [ebp + 0x48]
push eax
push 0
push 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [ebp + 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x70]
sub ecx, dword [ebp + 0x68]
mov dword [ebp - 0x48], ecx
cvtsi2ss xmm0, dword [ebp + 0x64]
movss dword [ebp - 0x90], xmm0
cvtsi2ss xmm0, dword [ebp + 0x68]
movss dword [ebp - 0x94], xmm0
mov edx, dword [ebp + 0x6c]
sub edx, dword [ebp + 0x64]
cvtsi2ss xmm0, edx
movss dword [ebp - 0x98], xmm0
movss xmm0, dword [ebp - 0x90]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ebp - 0x94]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ebp - 0x98]
movss dword [ebp - 0x3c], xmm0
cvtsi2ss xmm0, dword [ebp - 0x48]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [0x1002c8a4]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [0x1002c8a4]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [0x1002c8a4]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [0x1002c8a4]
movss dword [ebp - 0x34], xmm0
mov eax, dword [ebp + 0x50]
cmp dword [eax + 0x80], 0
jne 0x1001850c
push 1
mov ecx, dword [ebp + 0x48]
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jne 0x100184d2
mov dword [ebp - 0x4c], 0
jmp 0x100184de
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x4c], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
movzx ecx, byte [ebp + 0x78]
test ecx, ecx
je 0x1001850a
movss xmm0, dword [ebp - 0x44]
addss xmm0, dword [0x1002c8a8]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ebp - 0x40]
addss xmm0, dword [0x1002c8a8]
movss dword [ebp - 0x40], xmm0
jmp 0x10018537
push 0
mov edx, dword [ebp + 0x48]
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0
jne 0x1001852b
mov dword [ebp - 0x50], 0
jmp 0x10018537
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x50], ecx
push 1
mov edx, dword [ebp + 0x48]
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
jne 0x10018556
mov dword [ebp - 0x54], 0
jmp 0x10018562
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ecx
push 1
mov edx, dword [ebp + 0x48]
push edx
call sub.gdiplus.dll_GdipSetStringFormatHotkeyPrefix
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x10018581
mov dword [ebp - 0x58], 0
jmp 0x1001858d
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
push 4
mov edx, dword [ebp + 0x48]
push edx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x100185ac
mov dword [ebp - 0x5c], 0
jmp 0x100185b8
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x50]
add ecx, 0x28
call fcn.100281b0
mov dword [ebp + 0x30], eax
push 4
mov edx, dword [ebp + 0x60]
mov eax, dword [edx]
push eax
call sub.gdiplus.dll_GdipSetSmoothingMode
mov dword [ebp + 0x40], eax
cmp dword [ebp + 0x40], 0
je 0x100185ef
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x40]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x60], eax
jmp 0x100185f5
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x60], ecx
call fcn.1000dc20
movzx edx, al
test edx, edx
jne 0x1001864a
mov eax, dword [ebp + 0x50]
cmp dword [eax + 0x80], 2
je 0x10018619
mov ecx, dword [ebp + 0x50]
cmp dword [ecx + 0x80], 1
jne 0x1001864a
push 3
mov edx, dword [ebp + 0x60]
mov eax, dword [edx]
push eax
call sub.gdiplus.dll_GdipSetTextRenderingHint
mov dword [ebp + 0x3c], eax
cmp dword [ebp + 0x3c], 0
je 0x10018642
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x3c]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x64], eax
jmp 0x10018648
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x64], ecx
jmp 0x10018679
push 5
mov edx, dword [ebp + 0x60]
mov eax, dword [edx]
push eax
call sub.gdiplus.dll_GdipSetTextRenderingHint
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x38], 0
je 0x10018673
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x38]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x68], eax
jmp 0x10018679
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp + 0x44]
mov dword [ebp - 0x6c], edx
lea eax, [ebp + 0x48]
test eax, eax
je 0x1001868e
mov ecx, dword [ebp + 0x48]
mov dword [ebp - 0x10], ecx
jmp 0x10018695
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x30], 0
je 0x100186a5
mov edx, dword [ebp + 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x100186ac
mov dword [ebp - 0x14], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
push ecx
call sub.gdiplus.dll_GdipMeasureString
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x34], 0
je 0x100186f0
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x34]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x88], ecx
jmp 0x100186f9
mov edx, dword [ebp + 0x34]
mov dword [ebp - 0x88], edx
movzx eax, byte [ebp + 0x74]
test eax, eax
je 0x1001870c
mov ecx, dword [ebp + 0x50]
add ecx, 0x2c
mov dword [ebp - 0x18], ecx
jmp 0x10018715
mov edx, dword [ebp + 0x50]
add edx, 0x28
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10001c90
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x44]
mov dword [ebp - 0x78], edx
lea eax, [ebp - 0xa8]
test eax, eax
je 0x10018749
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x1c], ecx
jmp 0x10018750
mov dword [ebp - 0x1c], 0
lea edx, [ebp + 0x48]
test edx, edx
je 0x1001875f
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x20], eax
jmp 0x10018766
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x30], 0
je 0x10018776
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
jmp 0x1001877d
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 0x60]
mov eax, dword [edx]
push eax
call sub.gdiplus.dll_GdipDrawString
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x2c], 0
je 0x100187ba
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x7c], eax
jmp 0x100187c0
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp + 0x50]
cmp dword [edx + 0x80], 0
je 0x100188c5
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x100188c5
mov dword [ebp - 0x80], 0
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 0x50]
mov edx, dword [ecx + 0x6c]
mov dword [ebp - 0x84], edx
lea eax, [ebp + 4]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
push ecx
movss xmm0, dword [0x1002c8a8]
movss dword [esp], xmm0
mov edx, dword [ebp - 0x84]
push edx
call sub.gdiplus.dll_GdipCreatePen1
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
push 3
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
push ecx
call sub.gdiplus.dll_GdipSetSmoothingMode
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x28], 0
je 0x1001884b
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x28]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x9c], ecx
jmp 0x10018854
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x9c], edx
push 2
mov eax, dword [ebp + 4]
push eax
call sub.gdiplus.dll_GdipSetPenDashStyle
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x24], 0
je 0x1001887b
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x8c], edx
jmp 0x10018884
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x8c], eax
movss xmm0, dword [ebp - 0x2c]
addss xmm0, dword [0x1002c8a8]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ebp - 0x28]
subss xmm0, dword [0x1002c8a8]
movss dword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp + 4]
push edx
mov ecx, dword [ebp + 0x60]
call fcn.10018280
mov byte [ebp - 4], 2
mov eax, dword [ebp + 4]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov byte [ebp - 4], 1
mov dword [ebp - 0xa8], vtable.Gdiplus::Brush.0
mov ecx, dword [ebp - 0xa4]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x48]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x44]
call fcn.10002010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add ebp, 0x54
mov esp, ebp
pop ebp
ret 0x24