Function at 0x40cce0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push 0x42c341
call sub.MSVCRT.dll_atoi
mov ecx, dword [0x42c6c4]
mov dword [0x42c518], eax
add esp, 4
xor ebp, ebp
cmp eax, dword [ecx + 8]
jl 0x40cd0c
xor eax, eax
mov dword [0x42c518], eax
cmp eax, ebp
jle 0x40cd1f
mov edx, dword [ecx + 0x10]
dec eax
mov edx, dword [edx + 0x20]
mov dword [0x42c6c8], edx
jne 0x40cd10
mov eax, dword [0x42c980]
cmp eax, 0x31
je 0x40cd2e
cmp eax, 0x2b
jne 0x40cd67
mov dword [0x42d0dc], ebp
call fcn.00410c40
mov dword [0x42d0d4], eax
mov eax, dword [0x42c974]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x42d0d4], ebp
jne 0x40cd67
mov ecx, dword [0x42d140]
push ebp
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, 1
mov dword [0x42d0e8], ebx
call fcn.0040f570
call fcn.00416db0
mov eax, dword [0x42d120]
mov edx, dword [esp + 0x28]
push ebp
push ebp
push 0xf0
push eax
mov dword [0x42c8a4], edx
mov dword [0x42c898], ebx
mov dword [0x42c89c], ebp
mov dword [0x42c4ec], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40ce59
mov cl, byte [0x42c1b8]
xor edx, edx
mov dword [esp + 0xd], edx
mov byte [esp + 0xc], cl
mov ecx, dword [0x42d124]
mov dword [esp + 0x11], edx
mov dword [esp + 0x15], edx
lea eax, [esp + 0xc]
mov dword [esp + 0x19], edx
push 0x12
mov word [esp + 0x21], dx
push eax
push ecx
mov byte [esp + 0x2b], dl
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0xc]
push edx
call fcn.00412830
add esp, 4
test eax, eax
jne 0x40ce2d
push ebp
push 3
call fcn.0040fa00
mov eax, dword [0x42c6cc]
mov dword [0x42c8a0], 6
push eax
push 0x4e
call fcn.0040f910
push 3
call fcn.0040b890
add esp, 0x14
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x42c4f8], ebx
mov edx, ecx
mov esi, edi
mov edi, 0x42c6b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [0x42c4f4]
push 0x42c5e4
push 0x42c51c
push eax
call fcn.00412cd0
mov eax, dword [0x42c88c]
add esp, 0xc
cmp eax, ebx
jne 0x40ce9a
mov eax, dword [0x42d0b0]
mov dword [0x42c88c], ebp
cmp eax, ebp
jne 0x40ce94
push ebp
push ebp
push ebp
call fcn.0040f230
add esp, 0xc
mov dword [0x42d0b0], ebp
mov ecx, dword [0x42d144]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push ecx
call esi
mov edx, dword [0x42d140]
push ebp
push edx
call esi
mov eax, dword [0x42d148]
push ebp
push eax
call esi
mov ecx, dword [0x42c978]
mov edx, dword [0x42d140]
push ecx
push 0xb
push edx
call fcn.00401000
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
jne 0x40cf1e
mov eax, dword [0x42c518]
mov ecx, dword [0x42c6c4]
inc eax
mov dword [0x42c518], eax
mov edx, dword [ecx + 8]
cmp eax, edx
jl 0x40cf02
xor eax, eax
mov byte [0x42d17c], bl
mov dword [0x42c518], eax
mov edx, dword [ecx + 0x10]
cmp eax, ebp
mov dword [0x42c6c8], edx
jle 0x40cf1e
mov edx, dword [ecx + 0x10]
dec eax
mov edx, dword [edx + 0x20]
mov dword [0x42c6c8], edx
jne 0x40cf0f
mov eax, dword [0x42c974]
push 0x40f210
push 0x1d4c0
push 0x2719
push eax
mov dword [0x42c8ac], ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [0x42c988]
mov edx, dword [0x42c974]
push ecx
push 0x42c8d0
push 0x42c4e8
push edx
call fcn.00416320
add esp, 0x10
pop esi
pop ebp
pop ebx
add esp, 0x14
ret