Function at 0x100124b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100578c3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x5c]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x54], eax
lea edx, [esp + 0x18]
mov dword [esp + 0xb0], edi
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
neg ecx
push ecx
neg edx
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x54]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x1001257b
mov eax, dword [esp + 0x54]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 2
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x54]
push edi
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x10012590
mov ecx, pe_nt_image_headers32
jmp 0x100125ce
mov eax, dword [esi + 4]
push 0
push 0
push 0xf2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 4
je 0x100125ae
mov ecx, 0x200
jmp 0x100125ce
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 0xf
sub al, 1
neg al
sbb eax, eax
and eax, 0xfffff001
add eax, 0x1000
mov ecx, eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x54]
call fcn.10012870
mov edx, dword [0x1006eb44]
mov dword [esp + 0x14], edx
mov byte [esp + 0xb0], 1
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov ecx, edi
lea ebx, [esp + 0x14]
mov dword [esp + 0x28], edi
call fcn.10015350
test eax, eax
mov eax, dword [esp + 0x14]
je 0x1001267a
mov dword [eax - 8], edi
mov word [eax + edi*2], 0
mov ecx, dword [esi + 4]
add edi, 1
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, ebx
call fcn.10011c20
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [edi - 8], eax
mov word [edi + eax*2], 0
cmp dword [edi - 8], 0
jne 0x10012691
lea edx, [edi - 0xc]
cmp edx, 0x1006eb34
je 0x1001266b
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001266b
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
push eax
push ecx
jmp 0x10012842
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10012838
lea esi, [eax - 0xc]
jmp 0x10012824
mov edx, dword [esp + 0x54]
mov ebx, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push edx
call ebx
mov dword [esp + 0x3c], eax
call fcn.10012b90
xor ecx, ecx
cmp eax, 0x100
setne cl
add ecx, 0x11
push ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x54]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
push 0x420
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x60]
push edi
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x38]
sar ecx, 1
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
call fcn.10012b90
cmp eax, 0x200
jne 0x1001277c
push 1
push 1
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
push 0x25
lea edx, [esp + 0x30]
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 0xfffffffffffffffc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x28]
push 0xfffffffffffffffc
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi + 4]
push 0
push 0
push 0xf2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 8
je 0x10012816
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x10012838
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10012838
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret