Function at 0x401ac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x240], ebx
cmp dword [ebx + 0xc], 3
jne 0x401afa
lea eax, [ebx + 0x14]
mov ecx, 0x488984
push eax
push dword [ebx + 0x10]
push dword [edi + 4]
call fcn.0040f010
mov eax, dword [ebx + 0xc]
cmp eax, 1
je 0x401b07
cmp eax, 3
jne 0x401b25
push str.BUTTON
push dword [edi + 4]
mov ecx, 0x488984
call fcn.0040f0d0
mov edx, eax
mov dword [ebp - 0x23c], edx
test edx, edx
jne 0x401b39
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x28]
mov eax, 1
test cl, 4
je 0x401b4d
mov eax, 4
jmp 0x401b70
test al, cl
je 0x401b58
mov eax, 3
jmp 0x401b70
test cl, 0x40
je 0x401b64
mov eax, 2
jmp 0x401b70
cmp dword [edi + 0x44], 0
mov ecx, 5
cmovne eax, ecx
push esi
push 0
lea esi, [ebx + 0x14]
mov dword [ebp - 0x228], eax
push esi
push eax
push 1
push dword [ebx + 0x10]
mov ecx, 0x488984
push edx
call fcn.0040efe0
movdqu xmm0, xmmword [esi]
lea eax, [ebp - 0x214]
mov ecx, 0x488984
push eax
push esi
mov esi, dword [ebp - 0x228]
push esi
push 1
push dword [ebx + 0x10]
movdqu xmmword [ebp - 0x214], xmm0
push dword [ebp - 0x23c]
call fcn.0040f090
push 0x100
lea eax, [ebp - 0x204]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x28]
xor edx, edx
movzx ecx, al
and ecx, 4
shl ecx, 3
test al, 1
mov eax, 1
mov dword [ebp - 0x234], ecx
cmovne edx, eax
cmp dword [edi + 0x38], 0
mov dword [ebp - 0x228], edx
je 0x401caa
cmp dword [edi + 0x18], 0
je 0x401c42
cmp word [ebp - 0x204], 0
jne 0x401c27
mov dword [ebp - 0x230], 0xffffffff
mov dword [ebp - 0x22c], 0xffffffff
jmp 0x401c54
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0xffffffff
jmp 0x401c54
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x230], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x22c], eax
push dword [edi + 0x40]
lea eax, [ebp - 0x230]
mov ecx, edi
push dword [edi + 0x3c]
push eax
call fcn.00401a60
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
add eax, dword [ebp - 0x228]
add ecx, dword [ebp - 0x228]
cmp dword [edi + 0x38], 0
je 0x401caa
mov edx, dword [ebp - 0x234]
or edx, 3
push edx
push dword [edi + 0x40]
push dword [edi + 0x3c]
push ecx
push eax
push 0
push dword [edi + 0x38]
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawStateW]
cmp word [ebp - 0x204], 0
je 0x401e04
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401cc1
sub ecx, edx
lea eax, [ebp - 0x230]
push eax
sar ecx, 1
lea eax, [ebp - 0x204]
push ecx
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [edi + 0x18], 0
je 0x401d48
cmp dword [edi + 0x38], 0
je 0x401d39
mov eax, dword [ebp - 0x20c]
mov ebx, dword [edi + 0x30]
sub eax, ebx
mov ecx, dword [edi + 0x3c]
sub eax, ecx
mov edx, dword [edi + 0x2c]
sub eax, edx
sub eax, dword [ebp - 0x230]
sub eax, dword [ebp - 0x214]
test eax, eax
jle 0x401d29
lea eax, [ebx + ecx]
add eax, edx
mov dword [ebp - 0x238], eax
or eax, 0xffffffff
jmp 0x401d54
lea eax, [edx + 2]
add eax, ecx
mov dword [ebp - 0x238], eax
or eax, 0xffffffff
jmp 0x401d54
mov dword [ebp - 0x238], 0xffffffff
or eax, 0xffffffff
jmp 0x401d54
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x238], eax
mov eax, dword [edi + 0x28]
push dword [ebp - 0x22c]
xor ebx, ebx
mov dword [ebp - 0x234], eax
push dword [ebp - 0x230]
cmp eax, 0xffffffff
mov ecx, edi
lea eax, [ebp - 0x238]
setne bl
push eax
dec ebx
call fcn.00401a60
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x228]
add ecx, eax
mov edx, dword [ebp - 0x234]
add eax, ebx
add edx, eax
mov dword [ebp - 0x224], ecx
cmp dword [edi + 0x38], 0
je 0x401daa
lea eax, [ecx + 6]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x220], edx
push 0xffffffffffffffff
push eax
call fcn.00409f80
mov ebx, dword [ebp - 0x240]
add esp, 4
mov ecx, 0x488984
push eax
push esi
mov esi, dword [ebp - 0x23c]
push 1
push dword [ebx + 0x10]
push esi
call fcn.0040f040
jmp 0x401e0a
mov esi, dword [ebp - 0x23c]
test byte [ebx + 0x28], 0x10
je 0x401e20
lea eax, [ebp - 0x214]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push esi
mov ecx, 0x488984
call fcn.0040efb0
mov ecx, dword [ebp - 4]
mov eax, 4
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 4