Function at 0x401e50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x100], eax
xor edx, edx
mov dword [ebp - 0x11c], edi
movdqu xmm1, xmmword [ebx + 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], eax
movdqu xmmword [ebp - 0xec], xmm1
test cl, 1
je 0x401ec9
mov eax, 0x200
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x108]
and ecx, 4
mov dword [ebp - 0x120], ecx
neg ecx
push esi
sbb esi, esi
mov ecx, 1
and esi, 0x20
cmp eax, 4
mov dword [ebp - 0x118], esi
cmove edx, ecx
cmp dword [edi + 0x44], 0
mov dword [ebp - 0xd0], edx
je 0x401f16
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
movdqu xmm1, xmmword [ebp - 0xec]
mov edx, dword [ebp - 0xd0]
test edx, edx
jne 0x4021b8
cmp dword [edi + 0x44], edx
je 0x401f60
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 - 0x11c]
mov esi, dword [ebp - 0x118]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000
mov eax, dword [ebp - 0x100]
je 0x401f7d
or eax, 0x4000
or eax, 0x10
push eax
push 4
lea eax, [ebp - 0xec]
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 0x402054
cmp dword [edi + 0x18], 0
je 0x401ff0
cmp word [ebp - 0xcc], 0
jne 0x401fd5
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x402002
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 0xec]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x402002
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.00401a60
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0x114]
add edx, dword [ebp - 0x114]
cmp dword [edi + 0x38], 0
je 0x402054
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 0x4021b0
lea ecx, [ebp - 0xcc]
lea edx, [ecx + 2]
jmp 0x402070
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402070
sub ecx, edx
lea eax, [ebp - 0xf4]
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 0x402107
lea eax, [ebp - 0xdc]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x38], 0
je 0x4020f8
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 - 0xf4]
sub eax, dword [ebp - 0xdc]
test eax, eax
jle 0x4020e8
lea eax, [esi + ecx]
add eax, edx
mov dword [ebp - 0x104], eax
or eax, 0xffffffff
jmp 0x402113
lea eax, [edx + 2]
add eax, ecx
mov dword [ebp - 0x104], eax
or eax, 0xffffffff
jmp 0x402113
mov dword [ebp - 0x104], 0xffffffff
or eax, 0xffffffff
jmp 0x402113
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x104], eax
mov eax, dword [edi + 0x28]
push dword [ebp - 0xf0]
xor ebx, ebx
mov dword [ebp - 0x100], eax
push dword [ebp - 0xf4]
cmp eax, 0xffffffff
mov ecx, edi
lea eax, [ebp - 0x104]
setne bl
push eax
dec ebx
call fcn.00401a60
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x104]
mov esi, dword [ebp - 0x100]
add eax, ecx
push dword [edi + 0x34]
mov dword [ebp - 0xd0], eax
lea eax, [ebx + ecx]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
add esi, eax
mov eax, dword [ebp - 0x110]
push dword [eax + 0x18]
call ebx
mov edi, eax
mov eax, dword [ebp - 0x118]
or eax, 2
push eax
push 0
push 0
push esi
push dword [ebp - 0xd0]
mov esi, dword [ebp - 0x110]
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 - 0x11c]
mov ebx, esi
movdqu xmm1, xmmword [ebp - 0xec]
cmp dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x10c]
pop esi
jne 0x40224c
test al, 0x10
je 0x40224c
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movd edx, xmm0
sub ecx, eax
movd eax, xmm1
movdqu xmmword [ebp - 0xfc], xmm1
sub edx, eax
mov eax, ecx
cmp edx, ecx
cmovl eax, edx
and eax, 0xfffffffc
cmp eax, 0xc
jle 0x40221d
mov ecx, 3
jmp 0x402225
cmp edx, ecx
cmovl ecx, edx
sar ecx, 2
neg ecx
lea eax, [ebp - 0xfc]
push ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0xfc]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
mov dword [edi + 0x48], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x4c], eax
xor ecx, ebp
pop edi
pop ebx
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 4