Function at 0x402250
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x104], ebx
mov eax, dword [ebx + 0x10]
mov ecx, eax
movups xmm1, xmmword [ebx + 0x1c]
mov edx, dword [ebx + 0xc]
and ecx, 1
mov dword [ebp - 0x108], eax
and eax, 4
mov dword [ebp - 0x110], ecx
mov esi, eax
shl ecx, 9
neg esi
mov dword [ebp - 0x118], edi
sbb esi, esi
mov dword [ebp - 0x100], edx
and esi, 0x20
mov dword [ebp - 0x10c], ecx
cmp dword [edi + 0x44], 0
movups xmmword [ebp - 0xfc], xmm1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], esi
je 0x4022e4
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
movups xmm1, xmmword [ebp - 0xfc]
mov edx, dword [ebp - 0x100]
cmp edx, 4
je 0x40258e
cmp dword [edi + 0x44], 0
je 0x402330
push 7
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0x18]
call edi
push dword [ebx + 0x28]
mov esi, eax
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
push dword [ebx + 0x18]
call edi
mov edi, dword [ebp - 0x118]
mov esi, dword [ebp - 0x114]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x10c]
or ecx, 0x4000
and eax, 0x8000
lea eax, [ebp - 0xfc]
cmove ecx, dword [ebp - 0x10c]
or ecx, 0x10
push ecx
push 4
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFrameControl]
push 0x64
lea eax, [ebp - 0xcc]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [edi + 0x38], 0
je 0x40242a
cmp dword [edi + 0x18], 0
je 0x4023c6
cmp word [ebp - 0xcc], 0
jne 0x4023ab
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x4023d8
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x4023d8
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0xd4], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0xd0], eax
push dword [edi + 0x40]
lea eax, [ebp - 0xd4]
mov ecx, edi
push dword [edi + 0x3c]
push eax
call fcn.00401e60
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0x110]
add edx, dword [ebp - 0x110]
cmp dword [edi + 0x38], 0
je 0x40242a
mov eax, esi
or eax, 3
push eax
push dword [edi + 0x40]
push dword [edi + 0x3c]
push edx
push ecx
push 0
push dword [edi + 0x38]
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
cmp word [ebp - 0xcc], 0
je 0x402581
lea ecx, [ebp - 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402441
sub ecx, edx
lea eax, [ebp - 0xe4]
push eax
sar ecx, 1
lea eax, [ebp - 0xcc]
push ecx
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [edi + 0x18], 0
je 0x4024d8
lea eax, [ebp - 0xdc]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x38], 0
je 0x4024c9
mov eax, dword [ebp - 0xd4]
mov esi, dword [edi + 0x30]
sub eax, esi
mov ecx, dword [edi + 0x3c]
sub eax, ecx
mov edx, dword [edi + 0x2c]
sub eax, edx
sub eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xdc]
test eax, eax
jle 0x4024b9
lea eax, [esi + ecx]
add eax, edx
mov dword [ebp - 0xd4], eax
or eax, 0xffffffff
jmp 0x4024e4
lea eax, [edx + 2]
add eax, ecx
mov dword [ebp - 0xd4], eax
or eax, 0xffffffff
jmp 0x4024e4
mov dword [ebp - 0xd4], 0xffffffff
or eax, 0xffffffff
jmp 0x4024e4
mov eax, dword [edi + 0x24]
mov dword [ebp - 0xd4], eax
mov eax, dword [edi + 0x28]
push dword [ebp - 0xe0]
xor ebx, ebx
mov dword [ebp - 0xd0], eax
push dword [ebp - 0xe4]
cmp eax, 0xffffffff
mov ecx, edi
lea eax, [ebp - 0xd4]
setne bl
push eax
dec ebx
call fcn.00401e60
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0xd4]
mov esi, dword [ebp - 0xd0]
add eax, ecx
push dword [edi + 0x34]
mov dword [ebp - 0x10c], eax
lea eax, [ecx + ebx]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
add esi, eax
mov eax, dword [ebp - 0x104]
push dword [eax + 0x18]
call ebx
mov edi, eax
mov eax, dword [ebp - 0x114]
or eax, 2
push eax
push 0
push 0
push esi
push dword [ebp - 0x10c]
mov esi, dword [ebp - 0x104]
lea eax, [ebp - 0xcc]
push 0
push eax
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
push edi
push dword [esi + 0x18]
call ebx
mov edi, dword [ebp - 0x118]
mov ebx, esi
mov edx, dword [ebp - 0x100]
movups xmm1, xmmword [ebp - 0xfc]
cmp dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x108]
jne 0x40262c
test al, 0x10
je 0x40262c
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edx, xmm0
sub ecx, eax
movd eax, xmm1
movups xmmword [ebp - 0xec], xmm1
sub edx, eax
mov eax, ecx
cmp edx, ecx
cmovl eax, edx
and eax, 0xfffffffc
cmp eax, 0xc
jle 0x4025f2
mov ecx, 3
jmp 0x4025fa
cmp edx, ecx
cmovl ecx, edx
sar ecx, 2
neg ecx
lea eax, [ebp - 0xec]
push ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0xec]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [ebp - 0x100]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x108]
jmp 0x40262f
mov dword [edi + 0x48], edx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x4c], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00420b40
mov esp, ebp
pop ebp
ret 4