Function at 0x1000c9c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10217d40
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x54], ebx
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 0xffffff
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
push 2
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0x18]
call edi
cmp dword [esi + 0x3c], 0
mov dword [ebp - 0x74], eax
je 0x1000ca4d
push dword [esi + 0x28]
jmp 0x1000ca5b
test byte [ebx + 0x10], 0x10
je 0x1000ca58
push dword [esi + 0x24]
jmp 0x1000ca5b
push dword [esi + 0x2c]
push dword [ebx + 0x18]
call edi
push 6
push 6
push dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_RoundRect]
test byte [ebx + 0x10], 1
je 0x1000cacf
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x44]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0xf0f0f0
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push 0
push 0x129
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
shr eax, 1
and ecx, 1
and eax, 1
mov dword [ebp - 0x60], ecx
push 6
mov dword [ebp - 0x5c], eax
call esi
push 5
mov edi, eax
call esi
mov ecx, dword [ebp - 0x50]
mov edx, eax
mov dword [ebp - 0x40], ecx
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 0x4c]
neg eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
lea ecx, [edx + edx]
push eax
neg ecx
lea eax, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test byte [ebx + 0x10], 0x10
je 0x1000cb4a
cmp dword [ebp - 0x60], 0
jne 0x1000cb4a
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x50]
push 0
push 1
push 0xf6
push dword [esi + 4]
add edi, 0xa
mov dword [ebp - 0x60], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
test ecx, ecx
je 0x1000cb98
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
push 3
push 0
push 0
sub eax, 0x10
push 0x10
cdq
push 0x10
sub eax, edx
push ecx
sar eax, 1
push eax
push edi
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawIconEx]
add edi, 0x1a
mov dword [ebp - 0x60], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x64], eax
call fcn.100687ac
mov ecx, eax
test ecx, ecx
jne 0x1000cbb9
push 0x80004005
call fcn.1000dd70
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1000cbce
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1000cbd0
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jns 0x1000cbf2
push 0x80070057
call fcn.1000dd70
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x1000cc12
push edx
lea ecx, [ebp - 0x68]
call fcn.1000d510
mov edi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
push edx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [edi - 8]
push edi
call fcn.101da165
add esp, 8
test eax, eax
js 0x1000cbe8
cmp eax, dword [edi - 8]
jg 0x1000cbe8
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi + 0x44]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi - 0xc], 0
mov dword [ebp - 0x78], eax
jl 0x1000cec3
push 0x10288aa0
push edi
call fcn.101d309b
mov esi, eax
add esp, 8
test esi, esi
je 0x1000cec3
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
je 0x1000cec3
push esi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
call fcn.1000c740
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
mov eax, dword [edi - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1000c910
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x5c]
shl eax, 0x14
mov dword [ebp - 0x5c], eax
add eax, 0x460
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
add ecx, 0xa
mov edx, dword [ebp - 0x60]
add eax, 0xfffffff6
push 1
push dword [esi + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0xa
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
test byte [esi + 0x10], 1
jne 0x1000cd1d
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x3c], 0
je 0x1000cd1d
push 0xe54a07
jmp 0x1000cd22
push 0x993300
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 0x5c]
add eax, 0x60
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x58]
push dword [eax + 0x48]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x70]
add eax, 0xf
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
push 0xc50
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push esi
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x48]
add eax, ecx
mov ecx, dword [ebp - 0x60]
add edx, 0xfffffff6
push 0x850
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x58]
push dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
call dword [sym.imp.USER32.dll_DrawTextW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ce0a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1000ce08
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x1000ce08
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x1000ce10
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ce4d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1000cebf
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x1000cebf
push 0
push dword [ecx + 4]
call esi
mov ebx, dword [ebp - 0x54]
push dword [ebp - 0x74]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x18]
call esi
push dword [ebp - 0x6c]
push dword [ebx + 0x18]
call esi
push dword [ebp - 0x78]
push dword [ebx + 0x18]
call esi
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000cf74
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1000cf72
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x1000cf72
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000cf74
call edx
jmp 0x1000ce4d
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x5c]
shl eax, 0x14
mov dword [ebp - 0x5c], eax
add eax, 0x460
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push edi
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
sub eax, esi
sub eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x44]
sub esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
cdq
add ecx, 0xfffffff6
sub eax, edx
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x60]
sar eax, 1
push 1
push dword [ebx + 0x18]
add esi, eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.GDI32.dll_SetBkMode]
test byte [ebx + 0x10], 1
jne 0x1000cf48
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x3c], 0
je 0x1000cf48
push 0xe54a07
jmp 0x1000cf4d
push 0x993300
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 0x5c]
add eax, 0x60
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push edi
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x1000ce50
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret 0x10