Function at 0x402380
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x104], esi
mov eax, dword [esi + 0x10]
mov edx, eax
movups xmm1, xmmword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
and edx, 1
mov edi, edx
mov dword [ebp - 0x110], eax
shl edi, 9
and eax, 4
cmp dword [ebx + 0x44], 0
movups xmmword [ebp - 0xfc], xmm1
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x10c], eax
je 0x402407
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
movups xmm1, xmmword [ebp - 0xfc]
mov ecx, dword [ebp - 0x108]
cmp ecx, 4
je 0x4026fa
cmp dword [ebx + 0x44], 0
je 0x402459
push 7
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esi + 0x18]
call edi
mov esi, eax
mov eax, dword [ebp - 0x104]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
mov esi, dword [ebp - 0x104]
push dword [esi + 0x18]
call edi
mov edi, dword [ebp - 0x100]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, edi
or ecx, 0x4000
test eax, 0x8000
lea eax, [ebp - 0xfc]
cmove ecx, edi
or ecx, 0x10
push ecx
push 4
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFrameControl]
push 0x64
lea eax, [ebp - 0xcc]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebx + 0x38], 0
je 0x402562
cmp dword [ebx + 0x18], 0
je 0x4024e7
cmp word [ebp - 0xcc], 0
jne 0x4024cc
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x4024f9
mov eax, dword [ebx + 0x2c]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x4024f9
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ecx
push dword [ebx + 0x40]
lea eax, [ebp - 0xd4]
mov ecx, ebx
push dword [ebx + 0x3c]
push eax
call fcn.00401f40
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0x114]
add edx, dword [ebp - 0x114]
mov edi, dword [ebx + 0x38]
test edi, edi
je 0x402562
cmp dword [ebp - 0x10c], 0
mov eax, 0x23
mov dword [ebp - 0x100], 3
cmove eax, dword [ebp - 0x100]
push eax
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push edx
push ecx
push 0
push edi
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
cmp word [ebp - 0xcc], 0
je 0x4026ed
lea ecx, [ebp - 0xcc]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402580
sub ecx, edx
lea eax, [ebp - 0xe4]
push eax
sar ecx, 1
lea eax, [ebp - 0xcc]
push ecx
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [ebx + 0x18], 0
je 0x40263b
lea eax, [ebp - 0xdc]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0x38], 0
mov edi, dword [ebp - 0xe4]
je 0x402622
mov eax, dword [ebp - 0xd4]
mov esi, dword [ebx + 0x30]
sub eax, esi
mov ecx, dword [ebx + 0x3c]
sub eax, ecx
mov edx, dword [ebx + 0x2c]
sub eax, edx
sub eax, edi
sub eax, dword [ebp - 0xdc]
test eax, eax
jle 0x402608
lea eax, [esi + ecx]
mov dword [ebp - 0xd0], 0xffffffff
add eax, edx
or esi, 0xffffffff
mov dword [ebp - 0xd4], eax
jmp 0x402653
lea eax, [edx + 2]
mov dword [ebp - 0xd0], 0xffffffff
add eax, ecx
or esi, 0xffffffff
mov dword [ebp - 0xd4], eax
jmp 0x402653
mov dword [ebp - 0xd4], 0xffffffff
or esi, 0xffffffff
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x402653
mov eax, dword [ebx + 0x24]
mov esi, dword [ebx + 0x28]
mov edi, dword [ebp - 0xe4]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], esi
push dword [ebp - 0xe0]
lea eax, [ebp - 0xd4]
mov ecx, ebx
push edi
push eax
call fcn.00401f40
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x114]
add eax, ecx
push dword [ebx + 0x34]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x100], eax
xor eax, eax
cmp esi, 0xffffffff
mov esi, dword [ebp - 0xd0]
setne al
dec ecx
add eax, ecx
add esi, eax
mov eax, dword [ebp - 0x104]
push dword [eax + 0x18]
call ebx
cmp dword [ebp - 0x10c], 0
mov edi, eax
mov eax, 2
mov ecx, 0x22
cmove ecx, eax
lea eax, [ebp - 0xcc]
push ecx
push 0
push 0
push esi
push dword [ebp - 0x100]
mov esi, dword [ebp - 0x104]
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 ebx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x108]
movups xmm1, xmmword [ebp - 0xfc]
cmp dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x110]
jne 0x402798
test al, 0x10
je 0x402798
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd edx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
sub edx, eax
movd eax, xmm1
movups xmmword [ebp - 0xec], xmm1
sub ecx, eax
cmp ecx, edx
mov eax, ecx
cmovge eax, edx
and eax, 0xfffffffc
cmp eax, 0xc
jle 0x40275e
mov ecx, 3
jmp 0x402766
cmp ecx, edx
cmovge 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 [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [ebp - 0x108]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x110]
jmp 0x40279b
mov dword [ebx + 0x48], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 0x4c], eax
xor ecx, ebp
pop ebx
call fcn.00424790
mov esp, ebp
pop ebp
ret 4