Function at 0x401fa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [ebx + 0xc], 3
lea ecx, [edi + 4]
mov dword [ebp - 0x234], ecx
jne 0x401fe1
lea eax, [ebx + 0x14]
push eax
push dword [ebx + 0x10]
push dword [ecx]
mov ecx, 0x585fd4
call fcn.00410310
lea ecx, [edi + 4]
jmp 0x401fe7
mov dword [ebp - 0x234], ecx
mov eax, dword [ebx + 0xc]
cmp eax, 1
je 0x401ff4
cmp eax, 3
jne 0x402011
push str.BUTTON
push dword [ecx]
mov ecx, 0x585fd4
call fcn.00410ad0
mov edx, eax
mov dword [ebp - 0x238], edx
test edx, edx
jne 0x402025
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x28]
mov eax, 1
test cl, 4
je 0x402039
mov eax, 4
jmp 0x40205c
test al, cl
je 0x402044
mov eax, 3
jmp 0x40205c
test cl, 0x40
je 0x402050
mov eax, 2
jmp 0x40205c
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, 0x585fd4
push edx
call fcn.00410280
movups xmm0, xmmword [esi]
lea eax, [ebp - 0x214]
mov ecx, 0x585fd4
push eax
push esi
mov esi, dword [ebp - 0x228]
push esi
push 1
push dword [ebx + 0x10]
movups xmmword [ebp - 0x214], xmm0
push dword [ebp - 0x238]
call fcn.00410450
push 0x100
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x234]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x28]
mov ecx, eax
and ecx, 4
and eax, 1
cmp dword [edi + 0x38], 0
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x234], eax
je 0x4021a0
cmp dword [edi + 0x18], 0
je 0x402124
cmp word [ebp - 0x204], 0
jne 0x402109
mov dword [ebp - 0x230], 0xffffffff
mov dword [ebp - 0x22c], 0xffffffff
jmp 0x402136
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0xffffffff
jmp 0x402136
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ecx
push dword [edi + 0x40]
lea eax, [ebp - 0x230]
mov ecx, edi
push dword [edi + 0x3c]
push eax
call fcn.00401f40
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
add ecx, dword [ebp - 0x234]
add edx, dword [ebp - 0x234]
cmp dword [edi + 0x38], 0
je 0x4021a0
cmp dword [ebp - 0x228], 0
mov eax, 0x23
mov dword [ebp - 0x22c], 3
cmove eax, dword [ebp - 0x22c]
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 + 0x10]
call dword [sym.imp.USER32.dll_DrawStateW]
cmp word [ebp - 0x204], 0
je 0x402335
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021b7
sub ecx, edx
lea eax, [ebp - 0x240]
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 0x402275
cmp dword [edi + 0x38], 0
je 0x402255
mov eax, dword [ebp - 0x20c]
sub eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x3c]
sub eax, ecx
mov edx, dword [edi + 0x2c]
sub eax, edx
sub eax, dword [ebp - 0x240]
sub eax, dword [ebp - 0x214]
test eax, eax
jle 0x402234
mov eax, dword [edi + 0x30]
add eax, ecx
mov dword [ebp - 0x22c], 0xffffffff
add eax, edx
mov dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x230], eax
jmp 0x40228d
lea eax, [edx + 2]
mov dword [ebp - 0x22c], 0xffffffff
add eax, ecx
mov dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x230], eax
jmp 0x40228d
mov dword [ebp - 0x230], 0xffffffff
mov dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 0x228], 0xffffffff
jmp 0x40228d
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ecx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
mov ecx, edi
push dword [ebp - 0x240]
push eax
call fcn.00401f40
mov edx, dword [ebp - 0x230]
xor eax, eax
mov ecx, dword [ebp - 0x234]
add edx, ecx
cmp dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x224], edx
setne al
dec ecx
add eax, ecx
mov ecx, dword [ebp - 0x22c]
add ecx, eax
cmp dword [edi + 0x38], 0
je 0x4022e1
lea eax, [edx + 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], ecx
push 0xffffffffffffffff
push eax
call fcn.00402ab0
add esp, 4
mov ecx, 0x585fd4
push eax
push esi
mov esi, dword [ebp - 0x238]
push 1
push dword [ebx + 0x10]
push esi
call fcn.00410340
jmp 0x40233b
mov esi, dword [ebp - 0x238]
test byte [ebx + 0x28], 0x10
je 0x402351
lea eax, [ebp - 0x214]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push esi
mov ecx, 0x585fd4
call fcn.00410250
mov ecx, dword [ebp - 4]
mov eax, 4
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00424790
mov esp, ebp
pop ebp
ret 4